Repository navigation
fix(deps): override undici to ^7.30.1 to patch CVE-2026-109869 (Dependabot #77) - #504
Conversation
Dependabot alert #77 (GHSA-xjj6-f33q-929c, high): undici's fetch crashes the Node process when a malicious server returns >5 content codings and closes the connection before the body. undici comes in via wrangler -> miniflare (dev-only); neither latest wrangler (4.152.0) nor miniflare ships a fixed undici yet, so bumping upstream does not resolve the alert. Force ^7.30.1 via npm overrides, consistent with the existing sharp override. No runtime impact: the undici instance is used only by the wrangler/ miniflare local toolchain and never enters the deployed worker bundle.
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.
|
| Layer / File(s) | Summary |
|---|---|
依赖覆盖配置 cloudflare-worker/package.json |
overrides 新增 undici: ^7.30.1,并保留 sharp: ^0.35.5。 |
Priority:
Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Bug fix
Merge Risk: 
Minimal · up to 74174
-
The localized dependency override introduces no identified merge-blocking risk.
Pre-merge checks: 
5
-
Check name Status Explanation Description Check Check skipped - CodeRabbit’s high-level summary is enabled. Title check 标题描述了 PR 的主要变更:在 cloudflare-worker 的 package.json 中新增 undici 覆盖版本 ^7.30.1,以修复 CVE-2026-109869(Dependabot #77)。原始摘要确认 overrides 中新增了 undici ^7.30.1,与标题一致。标题简洁,包含变更类型(fix(deps))、目标(undici 覆盖)和动机(漏洞修复),可…Docstring Coverage 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 Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Full details: Title check
-
Explanation
标题描述了 PR 的主要变更:在 cloudflare-worker 的 package.json 中新增 undici 覆盖版本 ^7.30.1,以修复 CVE-2026-109869(Dependabot
#77)。原始摘要确认 overrides 中新增了 undici ^7.30.1,与标题一致。标题简洁,包含变更类型(fix(deps))、目标(undici 覆盖)和动机(漏洞修复),可以让团队成员快速理解主要变更。
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.)
-
- 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.
What
Force
undici@^7.30.1via npmoverridesincloudflare-workerto resolve Dependabot alert #77 — GHSA-xjj6-f33q-929c / CVE-2026-109869 (high severity): a malicious server can crash the Node process callingfetch()by returning more than five content codings and closing the connection before the body.Why an override instead of a dependency bump
The vulnerable
undici@7.29.1arrives viawrangler (devDependency) → miniflare → undici. Neither the latest wrangler (4.152.0 → miniflare 5.20261019.2-beta) nor the latest stable miniflare (4.20260730.0) ships a fixed undici yet, so a plain dependency bump cannot clear the alert. The override follows the existingsharpoverride precedent in the same block.Impact
wrangler dev); it is never bundled into the deployed worker, which runs on workerd's platform fetch. The Vectorize index and production traffic are untouched — this PR changes no worker source code.Verification
npm ls undiciresolves to 7.30.1 through wrangler → miniflaretsc --noEmitpasseswrangler deploy --dry-runbundles cleanly with theenv.VECTORIZEbinding intactSummary by CodeRabbit