← Home

sanitize-html

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

3
Versions
MIT
License
No
Install Scripts
Missing
Provenance

Supply chain provenance

Status for the latest visible version.

No SLSA provenance npm registry signatures No source commit

Without SLSA provenance there is no cryptographic link between this tarball and the public source — the axios compromise (March 2026) relied on exactly this gap.

Maintainers

alexgilbertboutellromanekbodonkey

Keywords

htmlparsersanitizersanitize

Accepted risks

Findings the reviewer chose to accept rather than block on.

SourceRuleReasonAccepted byWhen
dependencies unvetted-dep:htmlparser2 AI (dependencies): htmlparser2 is a legitimate dependency used by the real sanitize-html; not itself a risk signal. ai
dependencies unvetted-dep:parse-srcset AI (dependencies): parse-srcset is a legitimate dependency used by the real sanitize-html; not itself a risk signal. ai

Versions (showing 3 of 3)

Version Deps Published
2.17.2 6 / 4
2.17.1 6 / 4
2.17.0 6 / 9

v2.17.0

1 finding
LOW No provenance attestation provenance

Package was published without Sigstore provenance. Only ~12% of npm packages have provenance, so this is common but not ideal.