CVE-2024-21501Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style…
- 5.3MediumCVSS base score
- 1.0%Exploitation in 30 daysEPSS · top 36% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. CISA's SSVC rates its exploitation: a proof of concept is public.
Timeline
ID reserved
By snyk
- 2 months later
· 2 months later
Published
- 12 months later
· 12 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| snykCNA (assigner) | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P |
| NVDNVD · Analyzed | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
- EPSS (exploitation in 30 days)
- 1.0% · top 36% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Affected products
sanitize-html
- affected < 2.12.1
org.webjars.npm:sanitize-html
- affected < *
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmsanitize-htmlGHSA-rm97-x556-q36h (opens in a new tab)
References
References8
- https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334 (opens in a new tab)x_transferred
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6276557 (opens in a new tab)x_transferred
- https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf (opens in a new tab)x_transferred
- https://github.com/apostrophecms/sanitize-html/pull/650 (opens in a new tab)x_transferred
- https://github.com/apostrophecms/apostrophe/discussions/4436 (opens in a new tab)x_transferred
- https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4 (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S/ (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7/ (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-0719 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-rm97-x556-q36h (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-21501)Record last updated .