Node sanitize html: Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when
Affects node-sanitize-htmlSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium.
Data as of 24 Nov 2026, 21:14 UTC
- EPSS
- 1.0% chance of exploitation in 30 days – higher than 64% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 24 Feb 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10node-sanitize-htmlpkg:deb/ubuntu/node-sanitize-html?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSnode-sanitize-htmlpkg:deb/ubuntu/node-sanitize-html?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10node-sanitize-htmlpkg:deb/ubuntu/node-sanitize-html?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSnode-sanitize-htmlpkg:deb/ubuntu/node-sanitize-html?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSnode-sanitize-htmlpkg:deb/ubuntu/node-sanitize-html?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-21501 (opens in a new tab)
- github.com/apostrophecms/sanitize-html/pull/650 (opens in a new tab)
- gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf (opens in a new tab)
- github.com/apostrophecms/apostrophe/discussions/4436 (opens in a new tab)
- github.com/apostrophecms/sanitize-html/commit/075499d1b98c387f4200fd59972ca9b15796b51b (opens in a new tab)
- github.com/apostrophecms/sanitize-html/commit/1e2294c8001ce07c89448e03289818da631795ba (opens in a new tab)
- security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334 (opens in a new tab)
- github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-21501 (opens in a new tab)