dompurify
3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed
Upgrading dompurify From 2.0.1 to 2.5.9
61 releases in betweennotes for 57
Counted from 57 of 61 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking2.1.0
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 6 advisories affecting 2.0.1
- Cross-site Scripting in dompurifymoderate · GHSA-63q7-h895-m982
- Cross-Site Scripting in dompurifymoderate · GHSA-chqj-j4fh-rw7m
- DOMpurify has a nesting-based mXSShigh · GHSA-gx9m-whjm-85jf
- Cross-Site Scripting in dompurifycritical · GHSA-mjjq-c88q-qhr6
- 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
- 2.2.3
Updated the README and removed an XSS warning
- 2.2.0
Fix a possible XSS in Chrome that is hidden behind #enable-experimental-web-platform-features, reported
- 2.2.0
Changed
RETURN_DOM_IMPORTdefault totrueto address said possible XSS
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
42 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
5 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.