Repository navigation
chore(deps): clear the high undici DoS advisory from the tree - #195
Merged
Merged
Conversation
undici 7.29.1 is vulnerable to GHSA-xjj6-f33q-929c (CVE-2026-109869, CVSS 7.5): fetch() crashes the process when a server returns more than five content codings and closes the connection before the body. 7.30.1 validates the coding chain before creating the body stream, and clears seven further advisories, two of them moderate ones pnpm audit also reported here. The existing `[email protected]` override had gone dead: payload 3.91.0 and miniflare now pin 7.29.1 themselves, so nothing requested 7.29.0 and the override matched nothing. Keying the replacement on the advisory's own vulnerable range makes it self-expiring instead — once every requester asks for 7.30.1 or later it stops matching, rather than silently holding the tree at whatever version it names. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EQQJHec7B8x4Sn2boMrjis
Deploying wemeditate-design with
|
| Latest commit: |
d19a1bb
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0ef6779a.wm-design.pages.dev |
| Branch Preview URL: | https://claude-fix-deps-undici.wm-design.pages.dev |
sydevs-bot
marked this pull request as ready for review
October 24, 2026 16:46
sydevs-bot
enabled auto-merge
October 24, 2026 16:46
Contributor
Author
|
Adversarial review skipped: 2 file(s), 16 changed line(s), under 🤖 sydevs dispatcher |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-web | d19a1bb | Commit Preview URL Branch Preview URL |
Oct 24 2026, 04:45 PM |
This was referenced Oct 24, 2026
Ardnived
approved these changes
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
7.29.1→7.30.1, clearing GHSA-xjj6-f33q-929c (CVE-2026-109869, high, CVSS 7.5) plus two moderates.[email protected]override had gone dead; the replacement keys on the advisory range so it self-expires.Preview
Preview pending — no Cloudflare alias exists until this push deploys. The change alters no rendered output, so there is nothing to deep-link.
Test results
tsc --noEmit,vitest run— 88 files, 883 tests passedpnpm build(Worker + client bundles)pnpm audit --audit-level=high: high count 2 → 1, moderate 5 → 3. The remaining high is happy-dom, handled separately.Manual verification
Nothing to click. Worth confirming by hand:
pnpm why undiciresolves a single7.30.1across payload, both miniflare copies and wrangler.pnpm devandpnpm previewstill boot — miniflare is the only consumer that executes undici locally.Notes for reviewer
The override's old key matched nothing.
5bf505f(#185) added"[email protected]": "7.29.1". payload3.91.0and bothminiflarecopies have since bumped their own pins to exactly7.29.1, so no requester asked for7.29.0any more and the override was inert — the tree sat on7.29.1by upstream default, not by our choice. That is the failure mode this PR is shaped to prevent, not just the CVE."undici@>=7.18.0 <7.30.1": "7.30.1"is the advisory's own vulnerable range. It stops matching once every requester asks for7.30.1or later, so it disappears on its own instead of pinning the tree to a version that later goes stale. pnpm supports a range in an override key.This advisory is not reachable in our production runtime.
grep -rl undici dist/afterpnpm buildreturns nothing: the Worker bundle contains no undici, because@payloadcms/sdkuses the platformfetchand payload's server never ships. undici executes here only inminiflare, which is local dev andwranglertooling. So this is tree hygiene, not live exposure — but the fix is a one-line minor bump with no breaking changes, which is cheaper than carrying the alert.Changelog checked for breakage. undici v7.30.1 lists no breaking or API changes. The behaviour changes are all tightenings: TLS 1.2 post-connect certificate errors no longer kill the process, per-origin Agent dispatchers now keep function-valued TLS options such as
checkServerIdentity, cross-origin redirect responses are no longer cached under the original URL, over-long content-coding chains are rejected, SRI tokens are case-normalised, and EventSource/WebSocket gain bounded buffers. None of these are surfaces this repo configures — we construct noAgent, noEventSourceand no undiciWebSocket.Detail
Why not a bare
"undici": "7.30.1"override. It would force7.30.1on any future requester including one that wants a newer patch, and would itself go stale the next time an advisory lands. The range key cannot do either.Why not
">=7.30.1"as the value. pnpm would resolve the newest match, which is8.12.3today — a major jump across every consumer, for no security reason.Dependabot and
pnpm auditdisagree on the count. The push hook reports "1 high, 3 moderate" onmainwhilepnpm audit --audit-level=highreported two highs before this change. Recorded, not explained.Generated by Claude Code