npm package

sanitize-html 2.18.0: no known vulnerabilities

sanitize-html 2.18.0 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
Sep 30, 2026
Latest is 2.18.1
Downloads last week
1.6M
13% of sanitize-html downloads
Licence
MIT
Pulls in
16 packages
Resolved by deps.dev

Newer releases

2.18.0 has nothing to fix today. Newer releases, for when you upgrade:

  • 2.18.1

    Newest 2.x release and the latest release. Released Oct 14, 2026.

    No known vulnerabilities

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.0, 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.