dompurify
3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed
Upgrading dompurify From 3.4.13 to 3.4.17
4 releases in betweenevery note read
- 0
- changes to make
- 5
- advisories fixed
- 4
- new
- 8
- fixes
Security
Fixes 5 advisories affecting 3.4.13
- DOMPurify: IN_PLACE returns a force-removed rawtext root whose text carries attacker markup — pure HTML reparse executeslow · GHSA-6688-9rhm-gjv2
- DOMPurify: SMIL attributeName=href guard is skipped when PARSER_MEDIA_TYPE is application/xhtml+xmllow · GHSA-c6gr-qvv4-5v3f
- DOMPurify SAFE_FOR_TEMPLATES bypass: split template expressions survive in attached shadow root content on DOM output modeslow · GHSA-cg2g-xh64-v4q7
- DOMPurify IN_PLACE: hook that removes a parent or sibling leaves the detached subtree's event handlers armed (incomplete fix for GHSA-p98j-92pf-mc4p)low · GHSA-mrv2-3pqr-j5jr
- DOMPurify: IN_PLACE: node-removing afterSanitize hook leaves detached subtree event handlers armed, causing DOM XSSlow · GHSA-p98j-92pf-mc4p
Release by release
- New
Added a purify-edge test runner as a compatibility check, thanks @anzal1
- Fixed
Fixed an issue with
IN_PLACE,SAFE_FOR_TEMPLATESand shadow roots, thanks @manus-pi - Fixed
Fixed
IN_PLACEhandling of nodes that hooks or custom elements tough during sanitization, thanks @uttej-badwane - Fixed
Fixed the SMIL
attributeNameguard in XHTML mode, thanks @Koukyosyumei
- New
- Fixed
Fixed a problem with
IN_PLACEnode removal when working with hooks, thanks @manus-pi - Fixed
Fixed a problem with
IN_PLACEsanitization and raw-text roots, thanks @h-t-m - Fixed
Fixed a problem with ESM default exports landing in CommonJS declarations, thanks @ssi02014
- Fixed
- New
Added better clobbering hardening when XML content is involved, thanks @gnyselcuk
- New
Added several smaller hardening and edge-case improvements, thanks @leechristensen
- New
- New
Added the SVG
pointer-eventsandvector-effectpresentation attributes to the allow-list, thanks @Jaybhade - Fixed
Fixed an issue with possible bypasses when risky tags are allow-listed, thanks @AlirezaRouhbakhsh
- Fixed
Fixed a couple of edge cases with mixed document contexts, thanks @fishjojo1
- New
8 other lines we could not sort, mostly version bumps
- 3.4.17
Hardened several smaller edge cases (namespaces, literal-text elements,
isValidAttribute()), thanks @artiphishell - 3.4.17
Clarified the
IN_PLACEdocumentation in the README about possible risks - 3.4.17
Updated several dependencies
- 3.4.16
Migrated from
rolluptorolldownbecause performance, thanks @ssi02014 - 3.4.16
Bumped several dependencies where possible
- 3.4.14
Conducted another refactoring run, removed dead branches and duplicated logic, flattened attribute validation
- 3.4.14
Updated the documentation in several spots, README, wiki, etc., thanks @Akokonunes
- 3.4.14
Updated several development dependencies and CI workflow actions
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.