dompurify
3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed
Upgrading dompurify From 2.0.17 to 2.1.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 1
- new
- 1
- fix
Before you upgrade
Tick each one off as you go- Breaking2.1.0
Security
22 advisories still affect 2.1.0
- 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.
Release by release
- Breaking
Removed the
SAFE_FOR_JQUERYflag (we are safe by default now for jQuery) - New
Added "auto convert" checkbox to test website, thanks @hackvertor
- Fixed
Fixed several possible mXSS patterns, thanks @hackvertor
- Breaking
5 other lines we could not sort, mostly version bumps
- 2.1.0
Removed several now useless mXSS checks
- 2.1.0
Updated the mXSS check for elements
- 2.1.0
Updated test cases to cover new sanitization strategy
- 2.1.0
Updated test website to use newer jQuery
- 2.1.0
Updated array of tested browsers and removed legacy browsers
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.