Skip to content

build(deps): bump dompurify from 3.4.18 to 3.5.0 - #67109

Merged
AndyScherzinger merged 2 commits into
masterfrom
dependabot/npm_and_yarn/dompurify-3.5.0
Nov 29, 2026
Merged

AndyScherzinger merged 2 commits into
masterfrom
dependabot/npm_and_yarn/dompurify-3.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 28, 2026

Copy link
Copy Markdown
Contributor

Bumps dompurify from 3.4.18 to 3.5.0.

Release notes

Sourced from dompurify's releases.

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
Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.4.18 to 3.5.0.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](cure53/DOMPurify@3.4.18...3.5.0)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested review from a team as code owners November 28, 2026 02:04
@dependabot dependabot Bot added the 3. to review Waiting for reviews label Nov 28, 2026
@dependabot
dependabot Bot requested review from kristian-zendato and susnux and removed request for a team November 28, 2026 02:04
Verify that disallowed tags, unsafe URLs, and event handlers are
removed while allowed formatting and safe link attributes survive.

Assisted-by: Copilot:gpt-6.1-sol

Signed-off-by: Josh <josh.t.richards@gmail.com>

@joshtrichards joshtrichards left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked 3.5.0’s behavioral changes against server and libs: all use string input without the affected options or hooks. No migration needed or compatibility blocker found.

Markdown tests pass with both versions; output is unchanged for 205 core SVG assets and representative inputs

Added tests to document that raw HTML is sanitized while allowed formatting and safe links survive.

@joshtrichards joshtrichards added this to the Nextcloud 36 milestone Nov 28, 2026
@joshtrichards joshtrichards added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 28, 2026
@AndyScherzinger
AndyScherzinger merged commit 23b9f9d into master Nov 29, 2026
93 of 95 checks passed
@AndyScherzinger
AndyScherzinger deleted the dependabot/npm_and_yarn/dompurify-3.5.0 branch November 29, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish AI assisted feature: dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants