
CVE catalog
CVE-2024-21501
node-sanitize-html: CVE-2024-21501
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.03% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-sanitize-html | sid | 2.17.0+~2.16.1-1 | fixed |
| Debian | node-sanitize-html | forky | 2.17.0+~2.16.1-1 | fixed |
| Debian | node-sanitize-html | trixie | 2.14.0+~2.13.0-1 | fixed |
| Debian | node-sanitize-html | bookworm | 2.8.0+~2.6.2-1 | vulnerable |
| Npm | sanitize-html | Not reported | 2.12.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-sanitize-html | source | sid | 2.13.0+~2.11.0-1 | not yet assigned | Not reported | [1064808] |
| Debian | node-sanitize-html | source | forky | 2.13.0+~2.11.0-1 | not yet assigned | Not reported | [1064808] |
| Debian | node-sanitize-html | source | trixie | 2.13.0+~2.11.0-1 | not yet assigned | Not reported | [1064808] |
| Debian | node-sanitize-html | source | bookworm | (unfixed) | not yet assigned | Not reported | [1064808] |
| Npm | sanitize-html | npm | Not reported | 2.12.1 | Not reported | GHSA-RM97-X556-Q36H | Not reported |
Notes
[bookworm] node-sanitize-html: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-21501]
- [https://osv.dev/vulnerability/GHSA-rm97-x556-q36h]
- [https://security-tracker.debian.org/tracker/CVE-2024-21501]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-21501.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0902.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]