Repository navigation
fix(deps): patch zod advisory GHSA-mrhx-c7xc-m3w5 - #25
Merged
Merged
Conversation
zod 3.25.76 came in only through @expo/cli 58.1.14, and no 3.x release is patched. @expo/cli 58.1.18 (expo 58.0.22) no longer depends on zod, so bump expo within SDK 58. The newer CLI ships an @expo/router-server that needs expo-router 58.0.29, so bump that too to keep the web export working.
🟢 Tier S · Ready to mergeUpdates the Expo SDK 58 and Expo Router patch versions and refreshes the npm dependency lockfile. The refreshed tree no longer includes Zod.
📂 Walkthrough · 2
🔇 Filtered out · 2Findings Hansi considered but did not post.
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 arrays.
Why this approach
zod@3.25.76was only pulled in by@expo/cli@58.1.14(zod: ^3.25.76). The advisory covers every version below 4.6.6 and there is no patched 3.x release, so overriding to zod 4 would break a 3.x consumer. Instead,@expo/cli@58.1.18(shipped withexpo@58.0.22) drops the zod dependency entirely.Changes
expo~58.0.17→~58.0.22(stays on SDK 58; pulls@expo/cli58.1.18 and patch bumps of other@expo/*packages)expo-router~58.0.25→~58.0.29: the newer CLI's@expo/router-servercallsgetRouteInfoForMatchedRoute, which 58.0.25 doesn't export, sonpm run buildfailed without this bumpzodis no longer inpackage-lock.json(npm ls zod --allis empty)The deepmerge alert GHSA-gcqx-w48m-w2h4 is left alone because there's no upstream fix yet.
Verification
npm ci, thennpm run buildwith the CI env vars: web export succeedsnpx tsc --noEmitpasses