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.14
1 release in betweenevery note read
Security
5 advisories still affect 3.4.14
- 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
Upgrading to 3.4.17 clears them.
Release by release
- 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
3 other lines we could not sort, mostly version bumps
- 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.