npm package

sanitize-html 2.18.1: no known vulnerabilities

sanitize-html 2.18.1 has no known vulnerabilities in OSV.dev.

npm (opens in a new tab) describes it as “Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis”

Known vulnerabilities
0
None in OSV.dev
Released
Oct 14, 2026
The latest release
Downloads last week
0
0% of sanitize-html downloads
Licence
MIT
Pulls in
15 packages
Resolved by deps.dev

Newer releases

2.18.1 is the latest release of sanitize-html.

Who is still on a vulnerable sanitize-html

49% of last week’s 11.8M sanitize-html downloads went to versions with known vulnerabilities.

From npm’s per-version download counts for the last 7 days, each version checked against OSV.dev. The versions checked cover over 99% of downloads.

Is sanitize-html the only one?

Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly sanitize-html 2.18.1, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.

Last checked against npm, OSV.dev and deps.dev.