Skip to content

chore(deps): bump dompurify from 3.4.17 to 3.5.1 in the npm_and_yarn group across 1 directory - #388

Merged
johannesjo merged 1 commit into
mainfrom
dependabot/npm_and_yarn/npm_and_yarn-13d8d7119c
Dec 4, 2026
Merged

johannesjo merged 1 commit into
mainfrom
dependabot/npm_and_yarn/npm_and_yarn-13d8d7119c

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the npm_and_yarn group with 1 update in the / directory: dompurify.

Updates dompurify from 3.4.17 to 3.5.1

Release notes

Sourced from dompurify's releases.

DOMPurify 3.5.1

Changelog

  • Fixed an issue where WHOLE_DOCUMENT dropped a body holding only text and a comment, thanks @​rvullriede
  • Fixed sanitize() throwing for body and html DOM node input when root was forbidden or risky, thanks @​rvullriede
  • Fixed WHOLE_DOCUMENT throwing for string input when html is forbidden, thanks @​rvullriede
  • Fixed the RETURN_DOM and RETURN_DOM_FRAGMENT return types of sanitize() to include null, thanks @​YevheniiKotyrlo
  • Added better hardening for IN_PLACE with <selectedcontent>, thanks @​DicksonWu654
  • Removed three stale osv-scanner ignore entries, thanks @​zyl71
  • Updated several dependencies and GitHub Actions

Behavioral changes

  • For body and html DOM node input, a forbidden root no longer throws. Its sanitized content is returned, as for string input.
  • A DOM node named BODY or HTML outside HTML namespace is no longer used as walk root. It is removed.
  • With RETURN_DOM or RETURN_DOM_FRAGMENT, TypeScript callers now get | null and may need a null check.

DOMPurify 3.5.0

This release contains security fixes and a few behavior changes, see below. There will be no further 3.4.x release.

Changelog

  • Fixed a further SAFE_FOR_TEMPLATES bypass where nested tags could reassemble expressions on reparse, thanks @​e1abrador
  • Fixed several ways for DOM-built input to get a template expression past SAFE_FOR_TEMPLATES: entity-encoded text in a style element nested in a textarea or title, text hidden in the children of a void element, NUL characters splitting a marker, and comments that end early on reparse
  • Fixed several gaps in the IN_PLACE fail-closed handling: a rejected root is now neutralized inside its open shadow roots, a failed call no longer leaves text or comments in the root, and a removed node that a hook or custom element puts back is sanitized again
  • Fixed a case where IN_PLACE never returned because a custom element or hook kept re-inserting a removed node, the call now fails closed
  • Fixed custom elements kept via CUSTOM_ELEMENT_HANDLING skipping the namespace check
  • Fixed a crash in the attribute loop when an uponSanitizeAttribute hook removed several attributes of the current node
  • Fixed a sanitize() call made from inside a hook or config callback replacing the config of the outer call
  • Fixed the types for RETURN_DOM, see #1728, thanks @​YevheniiKotyrlo
  • Added in-depth hardening against clobbering for IN_PLACE
  • Added regression tests for all of the above
  • 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
  • Extended the Sigstore signatures to all four bundles covered by the provenance
  • Updated the README, SECURITY.md and wiki
  • Updated several dependencies

Behavioral changes

  • 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
  • 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
  • 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
  • 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
  • IN_PLACE now throws when a hook or custom element keeps putting a removed node back, instead of returning the node or running indefinitely

DOMPurify 3.4.18

  • Fixed a SAFE_FOR_TEMPLATES bypass where the final scrub cut through tags and let a template expression form on reparse, thanks @​e1abrador
  • Fixed a direct property read in the clobbering check, thanks @​trace37labs
  • Removed several entries from the SVG tag allow-list that are attributes and not elements, thanks @​hackvertor
  • Added a console warning when USE_PROFILES is combined with ALLOWED_TAGS or ALLOWED_ATTR, thanks @​rugk

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Dec 4, 2026
@johannesjo

Copy link
Copy Markdown
Owner

@dependabot rebase

Bumps the npm_and_yarn group with 1 update in the / directory: [dompurify](https://github.com/cure53/DOMPurify).


Updates `dompurify` from 3.4.17 to 3.5.1
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](cure53/DOMPurify@3.4.17...3.5.1)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.5.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/npm_and_yarn-13d8d7119c branch from b58a5b3 to 9c6788d Compare December 4, 2026 11:11
@johannesjo
johannesjo merged commit 6b0551c into main Dec 4, 2026
3 checks passed
@johannesjo
johannesjo deleted the dependabot/npm_and_yarn/npm_and_yarn-13d8d7119c branch December 4, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant