Description
Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style attribute allowed, allowing enumeration of files in the system (including project dependencies). An attacker could exploit this vulnerability to gather details about the file system structure and dependencies of the targeted server.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | sanitize-html | < 2.12.1 | 2.12.1 |
| — | org.webjars.npm:sanitize-html | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-sanitize-html | 2.13.0+~2.11.0-1 | — |
| Debian 13 | node-sanitize-html | 2.13.0+~2.11.0-1 | — |
| Debian 12 | node-sanitize-html | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | node-sanitize-html | No fix yet | — |
| Ubuntu 26.04 LTS | node-sanitize-html | No fix yet | — |
| Ubuntu 25.10 | node-sanitize-html | No fix yet | — |
| Ubuntu 24.04 LTS | node-sanitize-html | No fix yet | — |
| Ubuntu 22.04 LTS | node-sanitize-html | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | jupyter-base-notebook | 7.6.3-r2 | — |
| Wolfi rolling | py3.10-jupyterlab +3 | 4.6.1-r1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | sanitize-html | < 2.12.1 | 2.12.1 | GHSA-rm97-x556-q36h |
Advisories 2
- WID-SEC-2024-3344 HCL BigFix WebUI: Mehrere Open Source Schwachstellen BSI CERT-Bund (WID) · Dec 18, 2024
- WID-SEC-2024-0902 Red Hat OpenShift: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · May 26, 2024
References
- https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6276557
- https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf
- https://github.com/apostrophecms/sanitize-html/pull/650
- https://github.com/apostrophecms/apostrophe/discussions/4436
- https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7/