Skip to content

chore(deps): override payload's pinned undici to 7.29.1 - #185

Merged
sydevs-bot merged 1 commit into
mainfrom
claude/chore-deps-undici
Oct 14, 2026
Merged

sydevs-bot merged 1 commit into
mainfrom
claude/chore-deps-undici

Conversation

@sydevs-bot

Copy link
Copy Markdown
Contributor

Summary

Change outline

Contract — the pnpm resolution graph

payload declares "undici": "7.29.0" exactly, so a caret bump cannot reach it. The override
rewrites that one declaration, and both importers then share the copy miniflare already pulled.

 package.json
+  pnpm.overrides
+    [email protected] → 7.29.1        # selector is the exact version, not a range

 pnpm-lock.yaml
-  [email protected]                   # [email protected] (via @payloadcms/richtext-lexical)
-  [email protected]                   # miniflare@5 (via wrangler)
+  [email protected]                   # both importers, one copy

Preview

Preview pending — no Cloudflare branch alias exists until the first build on this branch finishes.
Nothing visual changed; these only prove the Worker boots and the Ladle build survives.

Test results

  • Lean gate: ✓ .claude/skills/pr-prep/check.sh --full — lint 0 errors (2,115 pre-existing warnings), tsc --noEmit clean, vitest run 84 files / 847 tests
  • Targeted specs: none. No source file changed, and no spec can reach a resolution decision.
  • Build: ✓ pnpm build

Notes for reviewer

  • The advisories are real but not reachable in the deployed Worker. grep -rl undici dist/
    finds nothing in either bundle, with lexical as a positive control in the same tree. This repo
    imports only @payloadcms/richtext-lexical/react, and payload's server core never enters the
    SSR graph. So this closes two Dependabot alerts and removes a recurring handler fire; it does not
    patch live exposure. Flagging that rather than overselling the fix.

  • One judgement call: the selector is [email protected], not undici. A bare "undici": "^7.29.1" would also pin miniflare's copy and would keep forcing a version after payload moves
    on. The version-scoped form stops matching the day payload bumps its pin, so it goes inert
    instead of pinning backwards. The cost is that pnpm warns about nothing when an override matches
    nothing, so the entry will sit as dead config until someone notices — worth deleting next time
    payload's pin moves, not worth a mechanism here.

  • braces is left alone deliberately, and it is the one high advisory still open.
    GHSA-vfj7-8cjw-p6xm covers <=3.0.3, and 3.0.3 is the newest published version — there is no
    patch to take. It reaches the tree only as @ladle/react > globby > fast-glob > micromatch > braces, a devDependency that runs at playground build time over Ladle's own glob patterns. No
    PR and no ticket: nothing to bump, and no live risk to park.

  • Docs checked, nothing stale. undici, braces and overrides appear in no .md, .toml
    or .env.example. The only pre-existing hit is the word "braces" in MCP_USAGE.md, about JS
    syntax.

Detail

The two advisories.

ID CVE CVSS What
GHSA-rfgv-xxqx-mfg5 CVE-2026-19534 7.5 DoS via an unrequested WebSocket subprotocol
GHSA-w293-vg96-wgc3 CVE-2026-84961 7.4 TLS certificate validation bypass via dropped connect options in BalancedPool

Both patched in 7.29.1. The npm bulk advisory endpoint lists ten undici advisories in total, every
one ranged <7.29.1, so this target clears the package outright rather than only the two that
cross the high threshold.

That the override binds, measured rather than assumed. pnpm audit --audit-level=high before
and after:

high advisories
origin/main 3 undici ×2, braces
this branch 1 braces

That it introduces no peer problem. A plain pnpm install on an up-to-date lockfile skips
resolution and reports nothing, so both manifests were resolved from scratch in a scratch directory
with pnpm install --lockfile-only --no-frozen-lockfile. The unmet-peer set is byte-identical
between origin/main and this branch: two @cloudflare/workers-types lines and one react line,
all pre-existing and all untouched here.

Why not bump @payloadcms/richtext-lexical instead. [email protected] is the newest stable
release — the only later tags are 3.91.0-internal.* prereleases — and 3.90.2 is the version
that carries the pin. There is nothing to upgrade to.

Pipeline steps not run, and why.

  • /simplify — the diff is a five-line manifest block and a generated lockfile. No code to simplify.
  • /pr-review-toolkit:review-pr all — the plugin is not installed in this environment. /code-review high ran instead and reported no findings, having independently confirmed the selector binds, the inert-on-bump claim, the frozen-lockfile install, and the absence from dist/server.
  • /security-review — securityReview.triggerPattern in .claude/workflow.json matches neither changed path.
  • comment-lint.mjs — clean; the branch adds no comments.

🤖 Written by the sydevs autonomous loop — see what this is

🤖 Generated with Claude Code

https://claude.ai/code/session_0192wG9LLUNMN5tqLy6Zos7N


Generated by Claude Code

[email protected] pins undici at exactly 7.29.0, which carries two high
advisories: GHSA-rfgv-xxqx-mfg5 (CVE-2026-19534, WebSocket subprotocol
DoS) and GHSA-w293-vg96-wgc3 (CVE-2026-84961, BalancedPool TLS bypass).
Both are patched in 7.29.1 and no payload release moves the pin yet, so
a pnpm override is the only way to resolve them from here.

The selector targets the exact version rather than a range, so the entry
goes inert instead of pinning backwards once payload bumps undici
itself. 7.29.1 was already in the lockfile for miniflare, so both
importers now dedupe onto one copy.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0192wG9LLUNMN5tqLy6Zos7N
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying wemeditate-design with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3060eb7
Status: ✅  Deploy successful!
Preview URL: https://587c091e.wm-design.pages.dev
Branch Preview URL: https://claude-chore-deps-undici.wm-design.pages.dev

View logs

@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Adversarial review skipped: 2 file(s), 16 changed line(s), under review.skipWhen. Say @sydevs-bot review to force one.

🤖 sydevs dispatcher

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
wemeditate-web 3060eb7 Commit Preview URL

Branch Preview URL
Oct 12 2026, 09:57 PM

@sydevs-bot sydevs-bot moved this from Revising to Approved in SYDevelopers Technical Roadmap Oct 14, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit 5bf505f Oct 14, 2026
25 checks passed
@sydevs-bot
sydevs-bot deleted the claude/chore-deps-undici branch October 14, 2026 16:06
@sydevs-bot sydevs-bot moved this from Approved to Done in SYDevelopers Technical Roadmap Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants