Packages

dompurify

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

Upgrading dompurify From 3.4.18 to 3.5.0

1 release in betweenevery note read

  1. 3.4.18yours
  2. 3.5.0target
0
changes to make
0
advisories fixed
2
new
8
fixes

Security

  • This release contains security fixes and a few behavior changes, see below.

    3.5.0

Release by release

  1. 3.5.0

    Security fix22 Nov 20262 new · 8 fixes
    • Security

      This release contains security fixes and a few behavior changes, see below.

    • New

      Added in-depth hardening against clobbering for IN_PLACE

    • New

      Added regression tests for all of the above

    • Fixed

      Fixed a further SAFE_FOR_TEMPLATES bypass where nested tags could reassemble expressions on reparse, thanks @e1abrador

9 other lines we could not sort, mostly version bumps
  • Reworked the CI setup: one always-on workflow with a single required check, a read-only build job for the SLSA provenance, and a check that the tagged dist/ matches a clean build

    3.5.0
  • Extended the Sigstore signatures to all four bundles covered by the provenance

    3.5.0
  • Updated the README, SECURITY.md and wiki

    3.5.0
  • Updated several dependencies

    3.5.0
  • SAFE_FOR_TEMPLATES is guaranteed for string input. For DOM node input and IN_PLACE it is best effort, because a tree the HTML parser did not build can change shape when it is parsed again

    3.5.0
  • A name passing CUSTOM_ELEMENT_HANDLING.tagNameCheck is only kept in HTML. Inside SVG or MathML it is not a custom element and is now removed

    3.5.0
  • When a DOM node is passed in, a textarea or title holding an element child and a void element holding children are removed. The HTML parser never produces these, so string input is not affected

    3.5.0
  • A sanitize() call made from a hook no longer changes how the rest of the outer call behaves. Code that relied on the old side effect needs to pass the config explicitly

    3.5.0
  • IN_PLACE now throws when a hook or custom element keeps putting a removed node back, instead of returning the node or running indefinitely

    3.5.0

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.