dompurify
3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed
Upgrading dompurify From 1.0.0 to 1.1.1
13 releases in betweennotes for 11
Counted from 11 of 13 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking1.0.5
Security
25 advisories still affect 1.1.1
- 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
- Cross-site Scripting in dompurifymoderate · GHSA-63q7-h895-m982
Upgrading to 3.4.17 clears them.
Fixes 1 advisory affecting 1.0.0
- DOMPurify Open Redirect vulnerabilitymoderate · GHSA-8hgg-xxm5-3873
- 1.0.8
Added better in-depth protection against Gadget XSS, thanks Jun!
Release by release
1.1.0 – 1.1.12 releases, no release note
- Fixed
Fixed a minor problem with persistent config flags
- Fixed
Fixed a problem with extraneous HTML elements
- Fixed
Fixed some minor issues in README and Demo
- Fixed
- New
Added better internal code hardening, thanks @choumx
- New
Added more tests
- New
Added better browser coverage for CI via BrowserStack
- Fixed
Fixed a possible security problem when
SAFE_FOR_TEMPLATESistrue(default isfalse), thanks @masatokinugawa - Fixed
Fixed a security problem when
ALLOWED_TAGSorADD_TAGSwhite-listsnoembedornoscript(not the default), thanks @masatokinugawa
- New
- New
Optimized handling of leading white-space
- Fixed
Fixed a build error caused by npm@natives
- New
- Security
Added better in-depth protection against Gadget XSS, thanks Jun!
- New
Added cosmetic changes to README.md
- New
Added several new tests
- Security
- Fixed
Fixed a bypass for older MS Edge found by Gareth Heyes / @hackvertor
- Fixed
- New
Added new configuration flag IN_PLACE for very fast "in place" node sanitization
- New
- Breaking
Removed Safari 10.1/11.1 TP specific security workarounds
- New
Added better test coverage for latest browsers
- New
Added better test coverage for latest NodeJS
- Fixed
Fixed a loop when ALLOW_TAGS-collides with WHOLE_DOCUMENT
- Fixed
Fixed a CDATA encoding bug with SAFE_FOR_JQUERY
- Breaking
12 other lines we could not sort, mostly version bumps
- 1.0.11
Expanded the array of permitted SVG properties
- 1.0.11
Expanded the array of permitted HTML properties
- 1.0.10
Extended the SVG attribute whitelist
- 1.0.10
Cleaned up legacy browser coverage for CI via BrowserStack
- 1.0.9
Extended array of tested browsers
- 1.0.9
Squashed a memory leak
- 1.0.9
Removed a spurious alert from internal tests
- 1.0.9
Removed internal test for fixed Edge mXSS
- 1.0.8
Reduced installed library footprint a bit
- 1.0.4
Update code example to show usage with older JSDOM API
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.