Packages

dompurify

3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed

Upgrading dompurify From 1.1.0 to 3.4.17

114 releases in betweennotes for 109

Other targets from 1.1.0Newest 1.x1.1.1Latest3.5.0
  1. 1.1.0yours
  2. 1 release
  3. 2.0.0major
  4. 2.0.1security
  5. 18 releases
  6. 2.2.0security
  7. 2 releases
  8. 2.2.3security
  9. 21 releases
  10. 2.4.2security
  11. 17 releases
  12. 3.0.0major
  13. 12 releases
  14. 3.1.1security
  15. 1 release
  16. 3.1.3security
  17. 10 releases
  18. 3.2.6security
  19. 3 releases
  20. 3.3.2security
  21. 1 release
  22. 3.4.0security
  23. 3.4.1security
  24. 1 release
  25. 3.4.3security
  26. 13 releases
  27. 3.4.17target
3+
changes to make
25
advisories fixed
89+
new
113+
fixes

Counted from 109 of 114 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking3.4.7
  • Breaking3.4.1
  • Breaking2.1.0

Security

Fixes 25 advisories affecting 1.1.0

  • Fixed the template regexes to be more robust against ReDoS attacks, thanks @aleung27

    3.4.3
  • Strengthened the fast-check fuzz harness with explicit XSS invariants, an expanded seed-payload corpus, an additional idempotence property for SANITIZE_NAMED_PROPS, and a negative-control assertion ensuring the invariants actually fire

    3.4.1
  • Fixed a prototype pollution via CUSTOM_ELEMENT_HANDLING, thanks @trace37labs

    3.4.0
  • Fixed an issue with USE_PROFILES prototype pollution, thanks @christos-eth

    3.4.0
  • Fixed a prototype pollution issue when working with custom elements, thanks @christos-eth

    3.3.2
  • Added better config hardening against prototype pollution, thanks @EffectRenan

    3.2.6
  • Removed the script that caused the fake entry CVE-2025-48050

    3.2.6
  • Added better hardening against Prototype Pollution attacks, thanks @kevin-mizu

    3.1.3
  • Please also note that further releases may follow as the underlying vulnerability is apparently new and further variations may be discovered.**

    3.1.1
  • Fixed a Prototype Pollution issue discovered and reported

    2.4.2

Release by release

  1. 3.4.17

    12 Oct 20261 new · 3 fixes
    • New

      Added a purify-edge test runner as a compatibility check, thanks @anzal1

    • Fixed

      Fixed an issue with IN_PLACE, SAFE_FOR_TEMPLATES and shadow roots, thanks @manus-pi

    • Fixed

      Fixed IN_PLACE handling of nodes that hooks or custom elements tough during sanitization, thanks @uttej-badwane

    • Fixed

      Fixed the SMIL attributeName guard in XHTML mode, thanks @Koukyosyumei

  2. 3.4.16

    23 Sep 20263 fixes
    • Fixed

      Fixed a problem with IN_PLACE node removal when working with hooks, thanks @manus-pi

    • Fixed

      Fixed a problem with IN_PLACE sanitization and raw-text roots, thanks @h-t-m

    • Fixed

      Fixed a problem with ESM default exports landing in CommonJS declarations, thanks @ssi02014

  3. 3.4.15

    6 Sep 20262 new
    • New

      Added better clobbering hardening when XML content is involved, thanks @gnyselcuk

    • New

      Added several smaller hardening and edge-case improvements, thanks @leechristensen

  4. 3.4.14

    19 Aug 20261 new · 2 fixes
    • New

      Added the SVG pointer-events and vector-effect presentation 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

  5. 3.4.13

    3 Aug 20263 fixes
    • Fixed

      Fixed an issue with hook removal during IN_PLACE sanitization, thanks @koyokr

    • Fixed

      Fixed an issue with hooks potentially bypassing the clone guard, thanks @AkshayjainG

    • Fixed

      Fixed an issue with DOM clobbering via ownerDocument during IN_PLACE, thanks @AkshayjainG

  6. 3.4.12

    11 Jul 20261 new · 1 fix
    • New

      Added support for a few new SVG attributes, thanks @cbn-falias & @Develop-KIM

    • Fixed

      Fixed an issue where a hook would not get called for custom elements, thanks @Rikuxx0

  7. 3.4.11

    17 Jun 20261 fix
    • Fixed

      Fixed an issue with a leaky config for hooks via setConfig, thanks @trace37labs

  8. 3.4.10

    12 Jun 20261 new
    • New

      Added a deterministic micro-benchmark harness (npm run bench) with a --compare mode

105 other lines we could not sort, mostly version bumps
  • Hardened several smaller edge cases (namespaces, literal-text elements, isValidAttribute()), thanks @artiphishell

    3.4.17
  • Clarified the IN_PLACE documentation in the README about possible risks

    3.4.17
  • Updated several dependencies

    3.4.17
  • Migrated from rollup to rolldown because performance, thanks @ssi02014

    3.4.16
  • Bumped several dependencies where possible

    3.4.16
  • 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

    3.4.14
  • Hardened the handling of hooks removing elements, @mkrause-bee360

    3.4.12
  • Hardened the handling of declarative partial updates

    3.4.12

11 internal lines (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.