Skip to content

fix: resolve image-size to image-size-next (CVE-2025-71329/71330) - #57894

Closed
lcf2212dev wants to merge 1 commit into
react:mainfrom
lcf2212dev:fix/image-size-next-cve
Closed

fix: resolve image-size to image-size-next (CVE-2025-71329/71330)#57894
lcf2212dev wants to merge 1 commit into
react:mainfrom
lcf2212dev:fix/image-size-next-cve

Conversation

@lcf2212dev

Copy link
Copy Markdown

Summary

metro@^0.87.0 (pulled into this monorepo) depends on image-size@^1.0.2, which currently resolves to an archived / unmaintained package still affected by:

This PR adds a Yarn resolutions entry so nested image-size installs resolve to the community MIT drop-in image-size-next@2.1.0 (same public API as image-size@2.x, drop-in for Metro’s usage), and updates yarn.lock accordingly.

Not affiliated with the original image-size maintainer.

Fixes / relates to #57888

Changelog

[GENERAL] [SECURITY] - Force resolution of vulnerable image-size to maintained image-size-next@2.1.0 (CVE-2025-71329 / CVE-2025-71330)

Test Plan

  • Confirmed with Yarn classic 1.22.x that
    "resolutions": { "image-size": "npm:image-size-next@2.1.0" }
    installs image-size-next@2.1.0 into the image-size slot used by Metro.
  • yarn.lock updated to the published tarball + integrity for image-size-next@2.1.0.
  • Recommend CI: full install + existing Metro/asset pipeline tests.

Notes for reviewers

  • Longer-term fix may live in facebook/metro (change the direct dependency). This monorepo resolution unblocks RN consumers immediately.
  • npm audit fix cannot rename packages; an override/resolution is required.

@meta-cla

meta-cla Bot commented Aug 11, 2026

Copy link
Copy Markdown

Hi @lcf2212dev!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@github-actions

Copy link
Copy Markdown

Caution

Missing Changelog

Please add a Changelog to your PR description. See Changelog format

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).

Closes react#57888
@lcf2212dev
lcf2212dev force-pushed the fix/image-size-next-cve branch from 8a6b611 to 59bcb9e Compare August 11, 2026 03:00
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 11, 2026
@lcf2212dev

Copy link
Copy Markdown
Author

Closing in favor of a new PR with a properly signed commit (no force-push on this branch).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant