npm package
dompurify vulnerabilities by version
The latest release, 3.4.17 (Oct 12, 2026), has no known vulnerabilities. 70% of last week’s 71.6M downloads went to versions with known vulnerabilities. OSV.dev lists 30 advisories for dompurify; the newest was published on Oct 5, 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.4.17
- Oct 12, 2026, no known vulnerabilities
- Downloads last week
- 71.6M
- All versions, from npm
- Advisories on OSV.dev
- 30
- Newest Oct 5, 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
70% of last week’s 71.6M 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-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.
WarningCVE-2026-75838 on OSV.dev (opens in a new tab)GHSA-55q2-fjhq-7xh7
DOMPurify: IN_PLACE hook removal leaves a detached subtree executable, causing XSS
Affects < 3.4.13. Published Aug 7, 2026.
LowCVE-2026-66010 on OSV.dev (opens in a new tab)GHSA-c2j3-45gr-mqc4
DOMPurify: `CUSTOM_ELEMENT_HANDLING` bypasses `afterSanitizeElements` for allowed custom elements.
Affects < 3.4.12. Published Jul 21, 2026.
WarningCVE-2026-65898 on OSV.dev (opens in a new tab)GHSA-cmwh-pvxp-8882
DOMPurify: Permanent `ALLOWED_ATTR` pollution via `setConfig()` bypassing the hook clone-guard (incomplete fix of the 3.4.7 hook-pollution patch)
Affects < 3.4.11. Published Jun 18, 2026.
All 30 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.