npm
dompurify
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 written by security people who have vast background in web a
cross-site-scriptingdomdompurifyhtmljavascriptmathmlprevent-xss-attackssanitizer
Release cadenceEvery 2 weeks
Last releaseOct 12, 2026
Open advisories2
Changelog quality100% curated
GitHub Releases
Release history SecurityYou're on
99 older or filtered releases not shown.
Upgrade guides
Breaking changes and a migration checklist for each major versiondompurify 2 → 32.5.9 → 3.4.17Oct 12, 2026 BreakingBreaking1Security70Platform1Deprecated1New18Changed18Fixed51Other43dompurify 1 → 21.0.11 → 2.5.9Mar 5, 2026 Unknowndompurify 0.9 → 10.9.0 → 1.0.11Jun 18, 2019 Unknowndompurify 0.8 → 0.90.8.9 → 0.9.0May 18, 2017 Unknowndompurify 0.7 → 0.80.7.4 → 0.8.9May 3, 2017 Unknowndompurify 0.6 → 0.70.6.7 → 0.7.4Feb 17, 2016 Unknowndompurify 0.4 → 0.60.4.5 → 0.6.7Sep 17, 2015 Unknown
VersionChannelDateChangesSecurity
3.4.17 StableOct 12, 2026Security3Changed1Fixed4Other2Fix3.4.16 StableSep 23, 2026Security2Changed1Fixed3Other1Fix3.4.15 StableSep 6, 2026Security2Changed13.4.14 StableAug 19, 2026Security1New1Changed1Fixed1Other23.4.13 StableAug 3, 2026Security3Changed1Fixed1Fix3.4.12 StableJul 11, 2026Security3New1Changed1Fixed1Other1Fix3.4.11 StableJun 17, 2026Security1Changed2Fixed1Other3Fix3.4.10 StableJun 12, 2026New1Changed2Other73.4.9 StableJun 10, 2026Security1Changed3Other2Fix3.4.8 StableJun 3, 2026Security1Changed1Fixed2Other2Fix3.4.7 StableMay 27, 2026Security3Fixed1Other1Fix3.4.6 StableMay 26, 2026Security3Changed1Fixed1Other1Fix3.4.5 StableMay 18, 2026Security3Fix3.4.4 StableDeprecated May 17, 2026Security1Deprecated1New2Changed1Fixed1Other23.4.3 StableMay 13, 2026Security1Changed1Fixed2Other23.4.2 StableApr 30, 2026Changed1Fixed2Other13.4.1 StableApr 21, 2026Fixed5Other33.4.0 StableApr 14, 2026Security10Changed1Fixed5Other2Fix3.3.3 youStableMar 11, 2026Fixed13.3.2 StableMar 5, 2026Security7Changed1Fixed1Fix