fix: resolve image-size to image-size-next (CVE-2025-71329/71330) - #57894
fix: resolve image-size to image-size-next (CVE-2025-71329/71330)#57894lcf2212dev wants to merge 1 commit into
Conversation
|
Hi @lcf2212dev! Thank you for your pull request and welcome to our community. Action RequiredIn 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. ProcessIn 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 If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
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
8a6b611 to
59bcb9e
Compare
|
Closing in favor of a new PR with a properly signed commit (no force-push on this branch). |
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.Fixes / 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" }installs
image-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.