sanitize-html
npm10 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting sanitize-htmlpage 1 of 1
- CVE-2016-1000237MEDIUMCVSS 6.1EG 6.1✓ Fixed in 1.4.32020-01-23
sanitize-html before 1.4.3 has XSS.
- CVE-2017-16016MEDIUMCVSS 6.1EG 6.1✓ Fixed in 1.11.42018-06-04
Sanitize-html is a library for scrubbing html input of malicious values. Versions 1.11.1 and below are vulnerable to cross site scripting (XSS) in certain scenarios: If allowed at least one nonTextTags, the result is a potential XSS vulner…
- CVE-2017-16017MEDIUMCVSS 6.1EG 6.1✓ Fixed in 1.2.32018-06-04
sanitize-html is a library for scrubbing html input for malicious values Versions 1.2.2 and below have a cross site scripting vulnerability.
- CVE-2019-25225MEDIUMCVSS 6.1EG 6.1✓ Fixed in 2.0.0-beta2025-09-08
`sanitize-html` prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS). The `sanitizeHtml()` function in `index.js` does not sanitize content when using the custom `transformTags` option, which is intended to convert attri…
- CVE-2021-26539MEDIUMCVSS 5.3EG 5.3✓ Fixed in 2.3.12021-02-08
Apostrophe Technologies sanitize-html before 2.3.1 does not properly handle internationalized domain name (IDN) which could allow an attacker to bypass hostname whitelist validation set by the "allowedIframeHostnames" option.
- CVE-2021-26540MEDIUMCVSS 5.3EG 5.3✓ Fixed in 2.3.22021-02-08
Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the "allowedIframeHostnames" option when the "allowIframeRelativeUrls" is set to true, which allows attackers to bypass hostname whitelist f…
- CVE-2022-25887MEDIUMCVSS 5.3EG 5.3✓ Fixed in 2.7.12022-08-30
The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular expression replacement logic of HTML comment removal.
- CVE-2024-21501MEDIUMCVSS 5.3EG 5.3✓ Fixed in 2.12.12024-02-24
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 atta…
- CVE-2026-40186MEDIUMCVSS 6.1EG 6.1✓ Fixed in 2.17.32026-04-15
ApostropheCMS is an open-source Node.js content management system. A regression introduced in commit 49d0bb7, included in versions 2.17.1 of the ApostropheCMS-maintained sanitize-html package bypasses allowedTags enforcement for text insid…
- CVE-2026-44990CRITICALCVSS 9.3EG 9.3✓ Fixed in 2.17.42026-05-14
vulnerable: 2.17.3
ApostropheCMS is an open-source Node.js content management system, and sanitize-html provides a simple HTML sanitizer with a clear API. Under the default configuration, versions of `sanitize-html` prior to 2.17.4 can turn attacker-controll…
Check whether sanitize-html is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for sanitize-html CVEs against the assets you own.
Start Free Scan →