dompurify
3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed
Upgrading dompurify From 3.3.3 to 3.4.0
1 release in betweenevery note read
- 0
- changes to make
- 4
- advisories fixed
- 1
- new
- 9
- fixes
Security
13 advisories still affect 3.4.0
- 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: Hook mutation of `data.allowedTags` / `data.allowedAttributes` permanently pollutes `DEFAULT_ALLOWED_TAGS` / `DEFAULT_ALLOWED_ATTR`moderate · GHSA-76mc-f452-cxcm
Upgrading to 3.4.17 clears them.
Fixes 4 advisories affecting 3.3.3
- DOMPurify's ADD_TAGS function form bypasses FORBID_TAGS due to short-circuit evaluationmoderate · GHSA-39q2-94rc-95cp
- DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM modemoderate · GHSA-crv5-9vww-q3g8
- DOMPurify: FORBID_TAGS bypassed by function-based ADD_TAGS predicate (asymmetry with FORBID_ATTR fix)moderate · GHSA-h7mw-gpvr-xq4m
- DOMPurify: Prototype Pollution to XSS Bypass via CUSTOM_ELEMENT_HANDLING Fallbackmoderate · GHSA-v9jr-rg53-9pgp
- 3.4.0
Fixed a prototype pollution via
CUSTOM_ELEMENT_HANDLING, thanks @trace37labs - 3.4.0
Fixed an issue with
USE_PROFILESprototype pollution, thanks @christos-eth
Release by release
- Security
Fixed a prototype pollution via
CUSTOM_ELEMENT_HANDLING, thanks @trace37labs - Security
Fixed an issue with
USE_PROFILESprototype pollution, thanks @christos-eth - New
Added needed files for OpenSSF scorecard checks
- Fixed
Fixed a problem with
FORBID_TAGSnot winning overADD_TAGS, thanks @kodareef5
- Security
1 other line we could not sort, mostly version bumps
- 3.4.0
Bumped several dependencies where possible
1 internal line (docs, tests, tooling) left out.
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.