dompurify
3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed
Upgrading dompurify From 1.0.9 to 1.0.10
1 release in betweenevery note read
Security
26 advisories still affect 1.0.10
- 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.
Release by release
- 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
2 other lines we could not sort, mostly version bumps
- 1.0.10
Extended the SVG attribute whitelist
- 1.0.10
Cleaned up legacy browser coverage for CI via BrowserStack
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.