npm package
dompurify vulnerabilities by version
The latest release, 3.5.0 (Nov 22, 2026), has no known vulnerabilities. 44% of last week’s 98.4M downloads went to versions with known vulnerabilities. OSV.dev lists 33 advisories for dompurify; the newest was published on Oct 22, 2026.
npm (opens in a new tab) describes it as “DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It runs as JavaScript and works in all modern browsers, as well as in Node.js (via jsdom). DOMPurify is writ…”
- Latest release
- 3.5.0
- Nov 22, 2026, no known vulnerabilities
- Downloads last week
- 98.4M
- All versions, from npm
- Advisories on OSV.dev
- 33
- Newest Oct 22, 2026
- Licence
- (MPL-2.0 OR Apache-2.0)
Most-downloaded versions last week
From npm’s per-version download counts for the last 7 days, each checked against OSV.dev. Open a version for its advisories and what to upgrade to.
Who is still on a vulnerable dompurify
44% of last week’s 98.4M dompurify 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.
Release lines
The newest release of each major line, from the registry. dompurify doesn’t publish support dates we can check.
Newest advisories
The 5 most recently published, with the versions each one affects.
LowCVE-2026-116804 on OSV.dev (opens in a new tab)GHSA-cg2g-xh64-v4q7
DOMPurify SAFE_FOR_TEMPLATES bypass: split template expressions survive in attached shadow root content on DOM output modes
Affects >= 3.4.4, < 3.4.17. Published Oct 22, 2026.
LowCVE-2026-116803 on OSV.dev (opens in a new tab)GHSA-mrv2-3pqr-j5jr
DOMPurify IN_PLACE: hook that removes a parent or sibling leaves the detached subtree's event handlers armed (incomplete fix for GHSA-p98j-92pf-mc4p)
Affects < 3.4.17. Published Oct 22, 2026.
LowCVE-2026-116802 on OSV.dev (opens in a new tab)GHSA-c6gr-qvv4-5v3f
DOMPurify: SMIL attributeName=href guard is skipped when PARSER_MEDIA_TYPE is application/xhtml+xml
Affects < 3.4.17. Published Oct 22, 2026.
LowCVE-2026-109345 on OSV.dev (opens in a new tab)GHSA-6688-9rhm-gjv2
DOMPurify: IN_PLACE returns a force-removed rawtext root whose text carries attacker markup — pure HTML reparse executes
Affects < 3.4.16. Published Oct 5, 2026.
LowCVE-2026-109344 on OSV.dev (opens in a new tab)GHSA-p98j-92pf-mc4p
DOMPurify: IN_PLACE: node-removing afterSanitize hook leaves detached subtree event handlers armed, causing DOM XSS
Affects >= 3.4.13, < 3.4.16. Published Sep 30, 2026.
All 33 advisories are on OSV.dev (opens in a new tab).
Which dompurify do you have?
Paste a public GitHub repo or drop your package.json and see every vulnerable, end-of-life or deprecated dependency, with one fix task for your coding agent. Free, no sign-up.
How this page is checked
StackPrism reads every OSV.dev advisory for dompurify, merges duplicates filed under several ids, and asks OSV.dev which ones affect each version listed. Releases and their dates come from deps.dev, downloads from npm. No AI writes this page: every sentence comes from that data, refreshed every few hours.