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.

VersionKnown vulnerabilitiesDownloads
3.4.17Oct 12, 2026No known vulnerabilities39.3M
3.5.0latestNov 22, 2026No known vulnerabilities8.1M
3.4.18Nov 14, 2026No known vulnerabilities7.7M
3.4.16Sep 23, 20263 known vulnerabilities, worst rated low5.5M
3.3.1Dec 8, 202521 known vulnerabilities, worst rated warning4.1M
3.4.15Sep 6, 20265 known vulnerabilities, worst rated low3.9M
3.4.12Jul 11, 20265 known vulnerabilities, worst rated warning3.2M
3.4.11Jun 17, 20266 known vulnerabilities, worst rated warning3.1M

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.

LineNewest releaseReleased
33.5.0Nov 22, 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-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.

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

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

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

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

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.