Repository navigation
fix(deps): patch zod advisory GHSA-mrhx-c7xc-m3w5 - #82
Merged
Merged
Conversation
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.
🟢 Tier S · Ready to merge
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
📂 Walkthrough · 1
Reviewed |
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.
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-generatorand@tanstack/start-plugin-core, which all declarezod: ^4.5.4. The patched version is already inside that range, so no parent bump oroverridesentry is needed.npm update zod --package-lock-onlymoves 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 onmain, which is whynpm ci, and so CI onmain, fails withMissing: lru-cache@11.5.3 from lock file.Verification
npm cisucceedsnpm ls zodshows onlyzod@4.6.7npm run buildsucceeds