Repository navigation
fix(deps): 修复 KaTeX 与 sharp 安全漏洞 (Dependabot #60, #63) - #442
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (2)
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthrough本次更改更新根目录和 Cloudflare Worker 的依赖覆盖配置,并调整 WebDAV 服务测试中的代理超时断言范围。 Changes依赖配置
WebDAV 超时测试
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The dependency updates and timeout-test adjustment show no established user-facing regression or reason to block merging. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
|
@codex review |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
概要
针对 Dependabot 安全告警进行专项排查与修复,处理可安全修复的高危/低危漏洞,并修复测试套件中的耗时抖动问题。
修复内容
1. Dependabot #60:
sharp(< 0.35.5)cloudflare-worker/package.json中的@cloudflare/workers-types至兼容版本^5.20261001.1;overrides: { "sharp": "^0.35.5" },将 sharp 依赖刷新至0.35.5。cloudflare-worker依赖审计结果变为0 vulnerabilities。2. Dependabot #63:
katex(>= 0.11.0, < 0.18.2)package.json的overrides中补充"katex": "$katex";package-lock.json全局将 KaTeX 子依赖统一提升至0.18.10(>= 0.18.2)。3. 代码审计与测试稳定性修复
src/services/webdavService.test.ts中,fileExists基于剩余截止时间计算超时预算,无虚拟时钟时存在 1ms 执行延时导致expect(call[7]).toBe(10000)偶发变为9999。调整为合理区间断言,消除单测偶发 flaky 失败。未纳入此 PR 的告警说明(审计结论)
postcss-selector-parser< 7.1.6):仅在服务端动态解析不受信选择器时触发,当前仅在 Vite 打包期处理本地样式,无外部攻击面。修复版本 7.x 属于大版本升级,与 Tailwind 3.4 存在兼容性冲突,建议等待 Tailwind 官方兼容补丁或在 Dependabot 中标记 Dismiss。maskApiKeyandmaskPassword#64 (sprintf-js<= 1.1.3):由打包工具链electron-builder间接引入,用于本地下载预编译二进制时的内部日志,不进入最终客户端发布包。上游官方尚无可用 patch,建议在 Dependabot 中直接 Dismiss。本地验证
npm run check:boundaries通过npm run check:i18n通过npm run check:plugin-registry通过npm run lint通过npm run typecheck(tsc -b) 通过npm run test:run(149 个测试文件、1751 个测试用例全部通过)npm run build(Vite bundle budget 检查通过)cd cloudflare-worker && npm audit && npx tsc --noEmit(0 vulnerabilities, 0 错误)Summary by CodeRabbit