dompurify
3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed
Upgrading dompurify From 0.6.1 to 0.9.0
22 releases in betweennotes for 21
Security
25 advisories still affect 0.9.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
- Cross-site Scripting in dompurifymoderate · GHSA-63q7-h895-m982
Upgrading to 3.4.17 clears them.
- 0.9.0
Fixed and worked around newly discovered variations of the Safari 10.1 - 10.2 XSS
- 0.8.9
Fixed another aspect of the Safari XSS
- 0.8.6
Fixed an XSS in Safari 10.1 and 10.2 introduced by a Safari browser bug
- 0.8.1
Added more tests to cover the security fix
- 0.6.7
Fixed a possible security issue based on a newly spotted Firefox bug (explanation below)
- 0.6.7
The security issue is caused by a non-standard behavior of Gecko (the Firefox browser-engine) and a peculiar way of working with
innerHTML-assignments.
Release by release
- Security
Fixed and worked around newly discovered variations of the Safari 10.1 - 10.2 XSS
- New
Added feature test to spot additionally broken versions if necessary
- New
Added a configuration flag to use persistent configuration
- Fixed
Fixed unsafe document generation for Safari 10.1 and 10.2
- Security
- Security
Fixed another aspect of the Safari XSS
- New
Added better checks for old Firefox mXSS
- Security
0.8.8no release note
- New
Added test for Firefox mXSS issue
- New
Added more browsers to the test array
- New
- Security
Fixed an XSS in Safari 10.1 and 10.2 introduced by a Safari browser bug
- New
Added new flag
FORCE_BODYto enable better handling of HTML starting withstyleand other elements a browser might move into the header (see #199) - New
Added white-listing for ARIA attributes (see #203)
- Fixed
Fixed a minor return value problem on MSIE11 (see #198)
- Fixed
Fixed a minor bug in the URI white-list regex (see #200)
- Fixed
Fixed a bug where data URI attributes would be removed from SVG content (see #205)
- Security
- New
Added more test coverage
- Fixed
Fixed a small problem with empty DOM fragments on MSIE11
- Fixed
Fixed removal of data: URIs in img-src when having whitespaces
- New
0.8.3 – 0.8.42 releases, nothing new or fixed in the notes
- New
Added more test cases
- Fixed
Fixed a bug with the handling of binary attributes
- New
33 other lines we could not sort, mostly version bumps
- 0.8.7
Cleaned up after Safari emergency fix
- 0.8.7
General code and comment clean-up
- 0.8.5
Allowed users to pass DOM nodes for sanitization
- 0.8.4
Made the uponSanitizeElement and uponSanitizeAttribute hooks more powerful (see #184)
- 0.8.4
Updated MentalJS sandbox in the demo folder
- 0.8.3
Reduced the NPM package footprint
- 0.8.0
Enhanced support for Data URIs
- 0.8.0
Enhanced support for Node.js and jsdom
- 0.8.0
Enhanced tests and reduced useless output
- 0.8.0
Updated documentation and credits
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.