Package Health

sanitize-html

Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis

Latest 2.17.4NPMNPM

80%

Total Score

Maintainer Stability
Maintainer Stability
Assesses the consistency and reliability of package maintainers

57

Dependencies
Dependencies
Evaluates the health and security of package dependencies

95

Maturity
Maturity
Indicates package age, release frequency, and adoption metrics

100

Supply Chain
Supply Chain
Evaluates supply chain security practices and risks

100

Attestations
Attestations
Measures the presence and validity of package attestations and signatures

50

Are you affected? Scan for Free

Vulnerabilities

TitleVersionsSeverity
CVE-2026-44990 New
sanitize-html is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in versions 0.0.0 - 2.17.3.
0.0.0 - 2.17.3
Critical
CVE-2026-40186
sanitize-html is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in versions 2.17.2 - 2.17.3.
2.17.2 - 2.17.3
Medium
CVE-2019-25225
sanitize-html is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in versions 0.0.0 - 2.0.0-beta.
0.0.0 - 2.0.0-beta
Medium
CVE-2024-21501
sanitize-html is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor in versions 0.0.0 - 2.12.1.
0.0.0 - 2.12.1
Medium
CVE-2022-25887
sanitize-html is vulnerable to Inefficient Regular Expression Complexity in versions 0.0.0 - 2.7.1.
0.0.0 - 2.7.1
High

Package versions

Direct Dependencies

DependencyLast ReleaseScore
launder
Version ^1.7.1
postcss
Version ^8.3.11
deepmerge
Version ^4.2.2
htmlparser2
Version ^10.1.0
parse-srcset
Version ^1.0.2

Weekly Downloads

Info

Last Published
3 days ago
Created
12 years ago
Unpacked Size
0.1 MB