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.

VersionKnown vulnerabilitiesDownloads
3.4.16Sep 23, 2026No known vulnerabilities20.9M
3.4.13Aug 3, 20262 known vulnerabilities, worst rated low6.6M
3.4.15Sep 6, 20262 known vulnerabilities, worst rated low5.6M
3.4.12Jul 11, 20262 known vulnerabilities, worst rated warning4.9M
3.3.1Dec 8, 202519 known vulnerabilities, worst rated warning4.7M
3.4.14Aug 19, 20262 known vulnerabilities, worst rated low4.6M
3.4.11Jun 17, 20263 known vulnerabilities, worst rated warning4.1M
3.3.3Mar 11, 202615 known vulnerabilities, worst rated warning2.6M

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.

LineNewest releaseReleased
33.4.17Oct 12, 2026
22.5.9Mar 5, 2026
11.0.11Jun 18, 2019
0.90.9.0May 18, 2017
0.80.8.9May 3, 2017
0.70.7.4Feb 17, 2016

Newest advisories

The 5 most recently published, with the versions each one affects.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Check your whole repo

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.

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