Skip to main content
CVE-2024-21501VulnerabilityPublished Updated

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

0
Compare

Not known to be exploited · CVSS 5.3 Medium.

Data as of 24 Nov 2026, 21:14 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Feb 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.10node-sanitize-htmlpkg:deb/ubuntu/node-sanitize-html?arch=source&distro=stonkingOther threatsAffected
  • =2.14.0+~2.13.0-1
  • =2.17.0+~2.16.1-1
Fixed in–
Ubuntu 26.04 LTSnode-sanitize-htmlpkg:deb/ubuntu/node-sanitize-html?arch=source&distro=resoluteOther threatsAffected
  • =2.14.0+~2.13.0-1
Fixed in–
Ubuntu 25.10node-sanitize-htmlpkg:deb/ubuntu/node-sanitize-html?arch=source&distro=questingOther threatsAffected
  • =2.14.0+~2.13.0-1
Fixed in–
Ubuntu 24.04 LTSnode-sanitize-htmlpkg:deb/ubuntu/node-sanitize-html?arch=source&distro=nobleOther threatsAffected
  • =2.8.0+~2.6.2-1
Fixed in–
Ubuntu 22.04 LTSnode-sanitize-htmlpkg:deb/ubuntu/node-sanitize-html?arch=source&distro=jammyOther threatsAffected
  • =2.6.1-1
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

Community reviews

Loading reviews…