dompurify
3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed
Upgrading dompurify From 3.2.6 to 3.2.7
1 release in betweenevery note read
- 0
- changes to make
- 1
- advisory fixed
- 3
- new
- 0
- fixes
Security
21 advisories still affect 3.2.7
- 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 1 advisory affecting 3.2.6
- DOMPurify contains a Cross-site Scripting vulnerabilitymoderate · GHSA-v8jm-5vwx-cfxm
Release by release
- New
Added new attributes and elements to default allow-list, thanks @elrion018
- New
Added
tagNameparameter to custom elementattributeNameCheck, thanks @nelstrom - New
Added better check for animated
hrefattributes, thanks @llamakko
- New
4 other lines we could not sort, mostly version bumps
- 3.2.7
Updated and improved the bundled types, thanks @ssi02014
- 3.2.7
Updated several tests to better align with new browser encoding behaviors
- 3.2.7
Improved the handling of potentially risky content inside CDATA elements, thanks @securityMB & @terjanq
- 3.2.7
Improved the regular expression for raw-text elements to cover textareas, thanks @securityMB & @terjanq
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.