Skip to content

fix(deps): patch zod advisory GHSA-mrhx-c7xc-m3w5 - #82

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/ghsa-zod
Nov 2, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/ghsa-zod

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

What

Fixes Dependabot alert GHSA-mrhx-c7xc-m3w5 (high): zod < 4.6.6 can exhaust memory while validating oversized constrained collections.

zod is transitive only, through @tanstack/router-plugin, @tanstack/router-generator and @tanstack/start-plugin-core, which all declare zod: ^4.5.4. The patched version is already inside that range, so no parent bump or overrides entry is needed. npm update zod --package-lock-only moves the lock from 4.6.5 to 4.6.7.

Re-resolving the lockfile also adds node_modules/nitro/node_modules/lru-cache@11.5.3. That entry was missing on main, which is why npm ci, and so CI on main, fails with Missing: lru-cache@11.5.3 from lock file.

Verification

  • npm ci succeeds
  • npm ls zod shows only zod@4.6.7
  • npm run build succeeds

Lock zod at 4.6.7, inside the ^4.5.4 range the TanStack router and start packages already declare. Re-resolving the lockfile also adds the missing nitro lru-cache entry that made npm ci fail on main.
@hansi-codes

hansi-codes Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The locked install and production build pass, and Zod is resolved only at the patched 4.6.7 version.

Updates the transitive Zod lock entry from 4.6.5 to 4.6.7, including the constrained-collection validation fix. Adds Nitro’s previously missing nested lru-cache@11.5.3 lock entry.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 1
File Change
package-lock.json Bumps Zod and records the nested lru-cache dependency for Nitro.

Reviewed e0ba2f9 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@hansi-codes hansi-codes Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@ChiragAgg5k
ChiragAgg5k merged commit b6ab46a into main Nov 2, 2026
2 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/ghsa-zod branch November 2, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant