dompurify
3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed
Upgrading dompurify From 2.2.3 to 2.5.9
39 releases in betweennotes for 37
- ?
- changes to make
- 3
- advisories fixed
- 30+
- new
- 32+
- fixes
Counted from 37 of 39 release notes. Advisories are counted from the advisory database, in full.
Security
19 advisories still affect 2.5.9
- DOMPurify's ADD_TAGS function form bypasses FORBID_TAGS due to short-circuit evaluationmoderate · GHSA-39q2-94rc-95cp
- 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
Upgrading to 3.4.17 clears them.
Fixes 3 advisories affecting 2.2.3
- DOMpurify has a nesting-based mXSShigh · GHSA-gx9m-whjm-85jf
- DOMPurify allows tampering by prototype pollutionhigh · GHSA-mmhx-hmjr-r674
- DOMPurify vulnerable to tampering by prototype polutioncritical · GHSA-p3vf-v8qc-cwcr
- 2.5.3
Added better hardening against Prototype Pollution attacks, thanks @kevin-mizu
- 2.5.1
Please also note that further releases may follow as the underlying vulnerability is apparently new and further variations may be discovered.**
- 2.4.2
Fixed a Prototype Pollution issue discovered and reported
Release by release
- Fixed
Fixed a possible bypass caused by jsdom's faulty raw-text tag parsing
- Fixed
- Fixed
Fixed two conditional sanitizer bypasses discovered
- Fixed
- Fixed
Fixed an issue with comment detection and possible bypasses with specific config settings, thanks @masatokinugawa
- Fixed
- Fixed
Fixed an issue with the execution logic of attribute hooks to prevent bypasses, thanks @kevin-mizu
- Fixed
Fixed a minor problem with the bower file pointing to the wrong dist path
- Fixed
- Fixed
Fixed a minor issue with the dist paths in
bower.js, thanks @HakumenNC - Fixed
Fixed a minor issue with sanitizing HTML coming from copy&paste Word content, thanks @kakao-bishop-cho
- Fixed
- Fixed
Fixed a bug with latest
isNaNchecks affecting MSIE, thanks @tulach - Fixed
Fixed the tests for MSIE and fixed related test-runner
- Fixed
- Security
Added better hardening against Prototype Pollution attacks, thanks @kevin-mizu
- New
Added better configurability for comment scrubbing default behavior
- Fixed
Fixed several mXSS variations found by and thanks to @kevin-mizu & @Ry0taK
- Fixed
Fixed some smaller issues in README and other documentation
- Security
2.5.2nothing new or fixed in the note
29 other lines we could not sort, mostly version bumps
- 2.5.8
Updated the attribute clobbering checks to prevent future bypasses, thanks @parrot409
- 2.5.7
Removed the
foreignObjectelement from the list of HTML entry-points, thanks @masatokinugawa - 2.5.6
Updated several development dependencies
- 2.5.2
Addressed and fixed a mXSS variation found
- 2.5.2
Addressed and fixed a mXSS variation found by Adam Kues of Assetnote
- 2.5.2
Updated tests for older Safari and Chrome versions
- 2.5.0
Updated the LICENSE file to show the accurate year number
- 2.5.0
Updated several build and test dependencies
- 2.4.3
Final release that is compatible with MSIE10 & MSIE 11
- 2.4.1
Bumped some dependencies, thanks @marcpenya-tf
2 internal lines (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.