Packages

dompurify

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

Upgrading dompurify From 3.4.0 to 3.4.1

1 release in betweenevery note read

Other targets from 3.4.0Newest 3.x, Latest3.5.0Clears its 13 advisories3.4.17
  1. 3.4.0yours
  2. 3.4.1target
1
change to make
0
advisories fixed
1
new
4
fixes

Before you upgrade

Tick each one off as you go
  • Breaking3.4.1

Security

  • 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

Release by release

  1. 3.4.1

    Security fix21 Apr 20261 new · 4 fixes
    • Security

      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

    • Breaking

      Removed a duplicate slot entry from the default HTML attribute allow-list

    • New

      Added regression and pinning tests covering the above fixes and two accepted-behavior contracts (SAFE_FOR_TEMPLATES greedy scrub, hook-added attribute handling)

    • Fixed

      Fixed an issue with on-handler stripping for HTML-spec-reserved custom element names (font-face, color-profile, missing-glyph, font-face-src, font-face-uri, font-face-format, font-face-name) under permissive CUSTOM_ELEMENT_HANDLING

    • Fixed

      Fixed a case-sensitivity gap in the annotation-xml check that allowed mixed-case variants to bypass the basic-custom-element exclusion in XHTML mode

    • Fixed

      Fixed SANITIZE_NAMED_PROPS repeatedly prefixing already-prefixed id and name values on subsequent sanitization

    • Fixed

      Fixed the IN_PLACE root-node check to explicitly guard against non-string nodeName (DOM-clobbering robustness)

1 other line we could not sort, mostly version bumps
  • Extended CodeQL analysis to run on 3.x and 2.x maintenance branches

    3.4.1

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.