Repository navigation
chore(deps): bump dompurify from 3.4.13 to 3.4.17 - #184
Conversation
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]>
|
No actionable comments were generated in the recent review.
|
| 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:
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: 
5
-
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.
Comment @coderabbitai help to get the list of available commands.
|
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. |
背景
修复 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:直接依赖dompurify3.4.13→3.4.17web/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 passedbun run build✅🤖 Generated with Claude Code
Summary by CodeRabbit