Skip to content

fix(deps): alias image-size to [email protected] (CVE-2025-71329/71330) - #2

Open
lcf2212dev wants to merge 1 commit into
ExtrieveTechnologies:mainfrom
lcf2212dev:fix/image-size-next-1.2.2
Open

lcf2212dev wants to merge 1 commit into
ExtrieveTechnologies:mainfrom
lcf2212dev:fix/image-size-next-1.2.2

Conversation

@lcf2212dev

Copy link
Copy Markdown

Why this PR

This follow-up is for ExtrieveTechnologies/QuickCapture_react_native: React Native document/image capture SDK that records frame size after capture. Default main lists image-size@^1.1.1 in dependencies.

Published quickcapture_react_native still depends on image-size@^1.1.1. Upstream image-size is archived. That coordinate remains affected by:

There is no patched release on the original package name. npm audit fix cannot rename the coordinate. This is a follow-up to #1 with a one-line alias so installs stop fetching the vulnerable tarball.

Change

Alias the published 1.x dependencies entry in package.json:

- "image-size": "^1.1.1"
+ "image-size": "npm:[email protected]"

The npm lockfile alias was updated so npm ci stays in sync.

Call sites left untouched:

  • existing require/import of image-size (no source edits)

[email protected] is a MIT community fork with the same 1.x public API. Compare: lcf2212dev/image-size-next@v1.2.1...v1.2.2

This is the 1.x pin (CJS default-export require('image-size') / import sizeOf from 'image-size'). Do not use [email protected] here (ESM+CJS 2.x named imageSize export).

Hub: lcf2212dev/image-size-next#3

I maintain image-size-next and am not affiliated with the original image-size author, nor with this project. Happy to drop the alias if you prefer vendoring the size helper.

Test plan

  • install resolves image-size[email protected]
  • existing require/import of image-size needs no source edits
  • image width/height behaviour on the call sites above is unchanged

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant