Skip to content

chore: bump dompurify from 3.4.17 to 3.5.1 in /web - #1880

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/web/dompurify-3.5.1
Dec 5, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/web/dompurify-3.5.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 5, 2026

Copy link
Copy Markdown
Contributor

Bumps 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 compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [dompurify](https://github.com/cure53/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: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from thegdsks as a code owner December 5, 2026 00:18
@dependabot dependabot Bot added area/ci .github/, scripts/ type/chore Tooling, CI, release plumbing labels Dec 5, 2026
@coderabbitai

coderabbitai Bot commented Dec 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9c1128a7-dd0a-438d-945b-b29f67f32acc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added this to the v1.5.21 milestone Dec 5, 2026
@github-actions github-actions Bot removed the type/chore Tooling, CI, release plumbing label Dec 5, 2026
@github-actions
github-actions Bot merged commit e04cb2b into main Dec 5, 2026
15 of 16 checks passed
@github-actions github-actions Bot added size/xs Under 10 lines changed and removed area/ci .github/, scripts/ labels Dec 5, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/web/dompurify-3.5.1 branch December 5, 2026 00:18
@glinr-bot

glinr-bot Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

glinr-bot

Rule dependency-bump matched. All gates of rule "dependency-bump" pass.

Gate Result Detail
not a draft pass
from this repository, not a fork pass
touches no protected path pass
has no blocking label pass
author is dependabot[bot] pass dependabot[bot]
at most 400 changed lines pass 6 lines
update type is patch or minor pass minor

Shadow mode: would only comment. Nothing was changed.

Checks (shadow, nothing is enforced)

Group Check Result
required gitleaks pending
required CI required pending
advisory Web tests (1/4) pending
advisory Web tests (4/4) pending
advisory Web tests (2/4) pending
advisory Web tests (3/4) pending
advisory Web (tsc, eslint) pending
advisory evaluate pending
advisory Dependency review pass
advisory Detect changed areas pass
advisory auto-merge pass
advisory zizmor (workflow audit) pass
advisory Release web build pending
advisory commit-semver pass
advisory milestone pass
advisory PR hygiene pass
advisory assign pass
skipped Generated files skipped
skipped Coverage gate skipped
skipped install-cli.sh (macOS) skipped
skipped Terraform provider (vet, test) skipped
skipped Test (everything else) skipped
skipped Test (quarantined, non-blocking) skipped
skipped Test (internal/api) skipped
skipped Cross-compile (${{ matrix.name }}) skipped
skipped Kit (vet, lint, test) skipped
skipped install.sh (${{ matrix.image }}) skipped
skipped Test (${{ matrix.lane }}) skipped
skipped install-cli.ps1 (Windows) skipped
skipped Build, vet skipped
skipped Lint skipped
skipped Plan Go work skipped
skipped proof skipped
skipped Release pacing skipped
skipped regenerate skipped

Next steps:

  • Wait for required checks: gitleaks, CI required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs Under 10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants