Repository navigation
fix(deps): clear both image-size highs with Metro 0.84.5 (#923) - #3389
Merged
Merged
Conversation
Metro 0.84.5 replaced image-size with vendored parsers, and @expo/metro 56.0.1+ ships it inside expo@57.0.13's ~56.0.0 range, so no Expo upgrade or override is needed. Re-resolve the Metro family 0.84.4 -> 0.84.5 and @expo/metro 56.0.0 -> 56.0.2 as one hoisted copy, and delete the two image-size allowlist entries that would have expired on 2026-11-15. expo export for Android and iOS gives the same module count, chunk hash and asset map on both Metro versions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q51MkSSrCkMQKRZQwA5Mrj
3 tasks
pdcarlson
enabled auto-merge (squash)
November 4, 2026 19:08
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.
Requested by Paul · project thread
Summary
image-sizehighs (GHSA-w3rx-r6r6-pgpr, GHSA-5p2g-fcmc-qvqq) are fixed, so their two allowlist entries are deleted. They would have expired on 2026-11-15, turningdependency-auditred on every PR from Nov 16.image-size. In fact Metro 0.84.5 (2026-08-19, fix(metro): vendor image dimension parsing react/metro#1860: "Replaceimage-sizedependency with vendored parsers, fix CVE alerts") dropped it too, and@expo/metro56.0.1 and later ship it. That's insideexpo@57.0.13's~56.0.0range, so this needs no Expo upgrade, no override and nopackage.jsonchange.Fixes #923
Changes
package-lock.json: the Metro family moves 0.84.4 → 0.84.5 and@expo/metromoves 56.0.0 → 56.0.2, as one hoisted copy. That one copy also serves@react-native/community-cli-plugin(^0.84.3) and Sentry's optionalmetropeer. The only other drift is Metro's own dependencies: its nestednegotiatorgoes 1.0.0 → 1.1.0, a nestedcontent-type2.1.0 is added, andimage-size1.2.1 and itsqueuedependency are gone. Nothing outside Metro moved (20 lockfile entries in all).scripts/npm-audit-allowlist.json: the twoimage-sizeentries are deleted. The two SDK 58 entries ([suggestion] No open tracker for the Expo SDK 58 upgrade — 21 client packages are frozen with no owner #2329) stay.docs/security/security-fixes.md: a dated 2026-11-04 note under the gate's Prevention notes, with the re-resolve recipe. The SDK 57 section's "no upstream fix at any version" line now has a dated correction.How the lockfile was re-resolved.
npm update @expo/metro --package-lock-onlyalone isn't enough. The Metro packages pin one another exactly, so it nests a second Metro 0.84.5 under@expo/metrobeside the hoisted 0.84.4, andnpm dedupestops on the TypeScript 6/7 peer split. With the pinned npm 11.19.0, what worked was to delete the hoistedmetro*,ob1andimage-sizelockfile entries (keeping@expo/metro), then runnpm update @expo/metro --package-lock-only. The recipe is recorded in the doc note.Docs / Spec impact
docs/security/security-fixes.mdowns the audit posture and the allowlist history.docs/security/security-fixes.md(§ npm audit sweep + CI gate, § Expo SDK 57 upgrade)Test plan
npm run check:npm-auditpasses with the entries deleted: 64 → 63 findings, high 6 → 5, and the only allowlisted highs left are the two [suggestion] No open tracker for the Expo SDK 58 upgrade — 21 client packages are frozen with no owner #2329 ones.npm ls metro metro-config image-size @expo/metro: one Metro 0.84.5 for every consumer, and noimage-size.npm run check:expo-sdk-linepasses.expo exportfor Android and iOS on Metro 0.84.4 (main) and 0.84.5 (this branch), with--dump-assetmap. Both give the same module count (3,748 Android, 3,667 iOS) and the same chunk hash, which Expo derives from the serialized JS. The asset maps are identical too, including the width, height and file hash of all 31 Android and 28 iOS assets, so the vendored parsers size the app's images exactly asimage-sizedid. The.hbcbytes differ, but they differ by the same amount between two exports on one Metro version, so that's Hermes run-to-run variation, not this change.node --test scripts/ci/__tests__/check-npm-audit.test.mjsandnpm run check:linkspass./diff-review: 3 finders (code, docs and invariants, acceptance and tests). None found anything. The repo'sdiff-finderagent type isn't available in this session, so they ran as general-purpose agents with that agent file as their instructions.mobile-validateruns the iOS export andexpo prebuildon the new Metro.Checklist
npm run check:linkspasses.Release label
release:patchGenerated by Claude Code