fix: resolve image-size to image-size-next (CVE-2025-71329/71330) - #57895
Closed
lcf2212dev wants to merge 1 commit into
Closed
fix: resolve image-size to image-size-next (CVE-2025-71329/71330)#57895lcf2212dev wants to merge 1 commit into
lcf2212dev wants to merge 1 commit into
Conversation
Metro pulls image-size@^1.0.2 which resolves to an unmaintained package with open DoS CVEs. Force a Yarn resolution to the community drop-in image-size-next@2.1.0 (same public API, MIT). Relates to react#57888
Contributor
|
The root Just to be clear as well, the CVEs listed are audit noise - they pose no risk to RN / Metro users because Metro never loads images from untrusted sources. |
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.
Summary
metro@^0.87.0(pulled into this monorepo) depends onimage-size@^1.0.2, which currently resolves to an archived / unmaintained package still affected by:This PR adds a Yarn
resolutionsentry so nestedimage-sizeinstalls resolve to the community MIT drop-inimage-size-next@2.1.0(same public API asimage-size@2.x, drop-in for Metro’s usage), and updatesyarn.lockaccordingly.Not affiliated with the original
image-sizemaintainer.Relates to #57888
Changelog:
[GENERAL] [SECURITY] - Force resolution of vulnerable
image-sizeto maintainedimage-size-next@2.1.0(CVE-2025-71329 / CVE-2025-71330)Test Plan:
"resolutions": { "image-size": "npm:image-size-next@2.1.0" }installsimage-size-next@2.1.0into theimage-sizeslot used by Metro.yarn.lockupdated to the published tarball + integrity forimage-size-next@2.1.0.Notes for reviewers
npm audit fixcannot rename packages; an override/resolution is required.(Replaces closed PR #57894 — fresh branch with signed commit.)