Skip to content

fix(security): DOMPurify updated due dependabot warnings - #13465

Merged
WebReflection merged 1 commit into
mainfrom
fix/dompurify-security-update
Aug 26, 2026
Merged

fix(security): DOMPurify updated due dependabot warnings#13465
WebReflection merged 1 commit into
mainfrom
fix/dompurify-security-update

Conversation

@WebReflection

Copy link
Copy Markdown
Contributor

Update DOMPurify from 3.4.2 (and 3.3.1 in session-ui) to 3.4.13 to resolve open Dependabot alerts.

What changed

  • Root package.json: catalog + overrides dompurify → 3.4.13
  • packages/ui/package.json and packages/session-ui/package.json: direct dependency → 3.4.13
  • bun.lock: single resolved dompurify@3.4.13 across the workspace

Why

3.4.2/3.3.1 are affected by several advisories (prototype pollution and XSS bypasses), including:

Updating the root override is the key fix: it currently forces every consumer — including the transitive dompurify used by mermaid and posthog-js — back to the vulnerable 3.4.2.

Validation

  • bun install resolves dompurify@3.4.13 workspace-wide
  • packages/ui and packages/session-ui typecheck clean
  • All tests pass: ui 160 pass, session-ui 81 pass
  • Sanitization behavior verified identical between 3.4.2 and 3.4.13 under jsdom: script/style stripping, onclick removal, SVG/foreignObject preservation (incl. the Mermaid HTML_INTEGRATION_POINTS config)

Supersedes dependabot PRs #12439 and #13012, which only bumped the direct deps without fixing the root override.

@kilo-code-bot

kilo-code-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (5 files)
  • .changeset/dompurify-security-update.md
  • bun.lock
  • package.json
  • packages/session-ui/package.json
  • packages/ui/package.json

Reviewed by grok-4.6 · Input: 172.1K · Output: 8.2K · Cached: 224.8K

Review guidance: REVIEW.md from base branch main

@WebReflection
WebReflection merged commit fe6ef12 into main Aug 26, 2026
33 checks passed
@WebReflection
WebReflection deleted the fix/dompurify-security-update branch August 26, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants