Repository navigation
build(security): retarget stale overrides and refresh transitive deps flagged by pnpm audit - #643
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Development dependency and override updates package.json |
The Zod development dependency changes from 4.4.3 to 4.6.7. The override thresholds for fast-uri and qs increase. The ws override is removed. |
Priority:
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Other
Merge Risk: 
Minimal · up to a77dc
-
No actionable merge-blocking issue is established for these dependency updates. Merge after normal dependency installation and validation checks pass.
Pre-merge checks: 
5
-
Full details: Description check
-
Explanation
The description is detailed and directly covers the motivation, dependency changes, remaining advisories, verification results, and lockfile merge considerations. It does not use the exact template headings or report
pnpm test:release, but the required change context and verification information are mostly complete.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- 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.
… flagged by pnpm audit pnpm audit reported advisories that GitHub's alert list does not show. - Retarget the stale overrides: fast-uri@<3.1.9 -> 3.1.9 (ajv, ships with the CLI) and qs@<6.16.1 -> 6.16.1. Both old targets were inside the widened advisory ranges. - Bump the root zod devDependency 4.4.3 -> 4.6.7, the version #641's fumadocs-mdx already resolves, so the tree keeps one zod 4 copy. - Lockfile-only refresh, every parent range already admits the fix: undici 7.30.1, body-parser 2.4.0, systeminformation 5.33.16, @hono/node-server 2.1.3, ip-address 10.7.4, and the fumadocs-mdx / eslint-plugin-react-hooks zod copies to 4.6.7. - happy-dom (an optional vitest peer the repo never loads) drops out of the lockfile, taking ws with it, so the now-dead ws override goes too. Left as is: shadcn 4.18.0's zod 3.25.76 (zod has no patched 3.x and shadcn 4.18 calls .deepPartial(), which zod 4 removed) and deepmerge 4.3.1 (no patched version). Rebuilt on a37ec27/193c0ab3 after #641 landed: the same package.json edits and temporary-pin recipe, applied to the new lockfile. The package-level diff matches the original except that fumadocs-mdx's zod was already at 4.6.7 via #641. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1373460 to
a77dc8a
Compare
…e, keep a single motion (#646) #637, #639, #644 and #645 all rewrite pnpm-lock.yaml and conflict with each other and with main after #643, so they are folded into one pnpm install: - next, eslint-config-next 16.4.2 -> 16.4.3 (#645) - vite 8.3.4 -> 8.3.5 (#644) - fumadocs-core, fumadocs-ui 16.17.7 -> 16.17.8; fumadocs-mdx 15.4.9 -> 15.4.10 (#639) - lucide-react 1.58.0 -> 1.62.0 (#637) fumadocs-ui 16.17.8 raises its motion range from ^14.0.0 to ^14.6.0, which the site's exact motion 14.0.0 can't satisfy, so on its own the bump would bring back the second motion runtime that #619 removed (14.8.0 next to 14.0.0). The site's motion moves to 14.7.0, the newest release more than three days old, and the lockfile keeps one copy of motion, framer-motion, motion-dom and motion-utils. The five motion components already declare ^14.0.0, so no manifest changes. The @radix-ui/* minor bumps come in through fumadocs-ui 16.17.8. Co-authored-by: Claude Opus 5.5 <[email protected]>
Why
pnpm auditon main reports 31 advisories (2 critical, 12 high, 13 moderate, 4 low). This morning GitHub's alert list showed only 3 of them. It caught up when main moved at 09:21 UTC and now shows 25, but it still misses zod, body-parser, ip-address and one of the MCP SDK advisories.Two of the gaps are our own pnpm overrides that went stale. In both, the exact target now sits inside the widened advisory range:
fast-uri@<3.1.8: 3.1.8against an advisory now covering<3.1.9. fast-uri arrives throughajv, one of the two dependencies the published CLI ships.qs@<6.16.0: 6.16.0against an advisory now covering<=6.16.0.What changed
fast-uri@<3.1.9: 3.1.9qs@<6.16.1: 6.16.1package.jsonbumpws@>=8.0.0 <8.21.0override deletedNotes:
<5.33.16. zod goes to 4.6.7 rather than 4.6.6 because ci(deps-dev): bump the five open Dependabot npm groups in one lockfile, refresh the MCP SDK #641's fumadocs-mdx 15.4.9 already resolves 4.6.7. Using the same version keeps a single zod 4 copy once both PRs land..pnpmstore. Each was moved with a temporary override, thenpnpm install, then the override removed and a secondpnpm install. The zod pins were scoped to their parents (fumadocs-mdx>zod,eslint-plugin-react-hooks>zod) so the MCP SDK's zod 3 edge doesn't move. A package-level diff of the lockfile'spackages:section shows only the packages in the table, plus happy-dom's own dependencies (@types/whatwg-mimetype,@types/ws,bufferutil,utf-8-validate,node-gyp-build,entities@7,whatwg-mimetype@3), which left with it.pnpm update --depth Infinitywas not used, because it also moves unrelated packages.*peer, and the repo runs vitest withenvironment: 'node'and never imports it. Once the lockfile entry was disturbed, pnpm (autoInstallPeersskips optional peers) dropped it instead of bumping it. With it went the onlywsin the tree, so thewsoverride no longer matched anything and was removed. A future vitest that pulls happy-dom back would resolve a current, patched release.ajv's^3.0.1andexpress's^6.14.0, and both forced versions satisfy those ranges. body-parser 2.4.0 no longer depends on qs. The lockfile'soverrides:section matchespackage.json, andpnpm install --frozen-lockfilepasses.ajv's own^3.0.1and already get a current fast-uri. The fast-uri fix is for this repo's tree.Left as is
^3.24.1)<4.6.6).deepPartial(), which zod 4 removed, and it readsZodError.errors. The fix is shadcn 4.22.0 or later (zod ^4.2.0), a direct devDependency upgrade for its own PR. GitHub has no alert for it.Fixed by #641, not here: next 16.4.0 → 16.4.2 (GHSA-2464-fhr4-w9xw and GHSA-673q-mjm6-r5xr, both critical unauthenticated RCE, plus GHSA-p3m5-59mp-jv5r, high) and
@modelcontextprotocol/sdk1.31.0 → 1.32.2 (4 advisories).Audit counts
The last row comes from a scratch merge onto #641's head.
package.jsonmerged cleanly. I took #641's lockfile and re-ran the same temporary-override recipe, and it reproduced the same package moves.#641 interaction
Both PRs rewrite
pnpm-lock.yaml, so whichever merges second needs a lockfile rebase. If #641 lands first, rebase this branch: take main's lockfile,pnpm install, add the temporary pins,pnpm install, remove them,pnpm installagain. The scratch merge above shows that path gives the 2-advisory result.Checks
Run locally on this branch (rebased on 62b7789):
pnpm install --frozen-lockfile,pnpm source:build,pnpm exec tsc --noEmit,pnpm lint, prettier onpackage.json: clean.pnpm test:int: 872 passed, 1 skipped (67 files)pnpm test:pack: passed (the packed CLI installs with onlyajvandsemver)🤖 Generated with Claude Code
Summary by CodeRabbit