Skip to content

chore(deps): bump dompurify from 3.4.13 to 3.4.17 - #184

Merged
mergify[bot] merged 1 commit into
suanova:mainfrom
skeeey:chore/bump-dompurify-3.4.17
Oct 26, 2026
Merged

mergify[bot] merged 1 commit into
suanova:mainfrom
skeeey:chore/bump-dompurify-3.4.17

Conversation

@skeeey

@skeeey skeeey commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

背景

修复 Dependabot 告警 #63(GHSA-cg2g-xh64-v4q7,critical):DOMPurify 在 SAFE_FOR_TEMPLATES + DOM 返回模式下,attached shadow root 内的拆分模板表达式可能在清理后重新合并存活。受影响范围 >= 3.4.4, <= 3.4.16,修复版本 3.4.17。

改动

  • web/package.json:直接依赖 dompurify 3.4.13 → 3.4.17
  • web/package.json:overrides 同步 3.4.13 → 3.4.17,mermaid 的传递依赖一并升级
  • web/bun.lock:同步更新

影响面

仓库两处调用(src/components/html-content.tsx、src/components/ui/markdown.tsx)均为字符串输入、字符串输出,未使用 SAFE_FOR_TEMPLATES / RETURN_DOM / IN_PLACE,漏洞前置条件不成立;本次按常规安全版本跟进升级。

验证

  • bun run typecheck ✅
  • bun run test ✅ 181 files / 1378 tests passed
  • bun run build ✅

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Maintenance
    • Updated the web app’s underlying input-cleaning component to a newer release. This is a behind-the-scenes update, with no new features, workflow changes, or visible interface changes. The update does not change the app’s intended behavior or introduce new user-facing capabilities.

Fixes Dependabot alert suanova#63 (GHSA-cg2g-xh64-v4q7, critical):
DOMPurify SAFE_FOR_TEMPLATES bypass via split template expressions
in attached shadow root content. Affected >=3.4.4, <=3.4.16.

Bump both the direct dependency and the overrides pin so mermaid's
transitive dompurify is upgraded as well.

Co-Authored-By: Claude Code <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 43980c6 and 4b0e57c.

Files ignored due to path filters: 1
  • web/bun.lock is excluded by !**/*.lock
Files selected for processing: 1
  • web/package.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The web package updates its dompurify dependency and override from version 3.4.13 to 3.4.17.

Changes: DOMPurify Version Update

Layer / File(s) Summary
Update DOMPurify versions
web/package.json
The dompurify dependency and override versions change from 3.4.13 to 3.4.17.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: clyang82

Merge Risk: Minimal · up to 4b0e5

The DOMPurify update is ready to merge with no identified blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: updating dompurify from 3.4.13 to 3.4.17.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • 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

Comment @coderabbitai help to get the list of available commands.

@mergify
mergify Bot merged commit 77116c4 into suanova:main Oct 26, 2026
7 checks passed
@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@skeeey
skeeey deleted the chore/bump-dompurify-3.4.17 branch November 8, 2026 09:48
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