dompurify
3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed
Upgrading dompurify From 3.4.9 to 3.4.10
1 release in betweenevery note read
- 0
- changes to make
- 0
- advisories fixed
- 1
- new
- 0
- fixes
Security
7 advisories still affect 3.4.10
- DOMPurify: IN_PLACE hook removal leaves a detached subtree executable, causing XSSmoderate · GHSA-55q2-fjhq-7xh7
- DOMPurify: IN_PLACE returns a force-removed rawtext root whose text carries attacker markup — pure HTML reparse executeslow · GHSA-6688-9rhm-gjv2
- DOMPurify: `CUSTOM_ELEMENT_HANDLING` bypasses `afterSanitizeElements` for allowed custom elements.low · GHSA-c2j3-45gr-mqc4
Upgrading to 3.4.17 clears them.
Release by release
- New
Added a deterministic micro-benchmark harness (
npm run bench) with a--comparemode
- New
9 other lines we could not sort, mostly version bumps
- 3.4.10
Refactored codebase for clarity: extracted the public type declarations into
types.ts - 3.4.10
Decomposed the three largest sanitizer functions into focused helpers
- 3.4.10
Removed duplicated defaults and dead branches, consolidated
SAFE_FOR_TEMPLATESscrubbing into single shared path - 3.4.10
Improved per-node performance by hoisting the mXSS probe regexes and testing
textContentbeforeinnerHTML - 3.4.10
Reduced CI cost by running the full three-engine browser suite once per PR
- 3.4.10
Refreshed the
demos/folder so every demo runs again, and added a SVG-via-<img>demo - 3.4.10
Documented the bench and
test:happydomscripts in the README - 3.4.10
Completed the Attack Classes & Bypass History wiki page
- 3.4.10
Bumped several dependencies where possible
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.