NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2024-21501: sanitize-html Information Exposure vulnerability

mediumCVSS 3.1 5.3GHSA-rm97-x556-q36h

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.

Published Feb 24, 2024 · Updated Mar 22, 2026

Affected packages

sanitize-html

Ecosystem
npm
Affected
< 2.12.1
Fixed in
2.12.1
Check
npm ls sanitize-html

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to oscerd, krassowski.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries