Skip to content

Upgrade image-size to official patched release - #7

Merged
VdustR merged 1 commit into
mainfrom
codex/image-size-official-fix
Oct 2, 2026
Merged

VdustR merged 1 commit into
mainfrom
codex/image-size-official-fix

Conversation

@VdustR

@VdustR VdustR commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Resolve the remaining image-size security dependency gap by upgrading the documentation dependency and Docusaurus MDX loader's compatible transitive resolution from locally patched 2.0.2 to official 2.0.4. Remove the local patch only after verifying equivalent protection against all five malformed-input fixtures.

  • Unpatched 2.0.2 hangs in isolated ICNS, HEIF, and JXL cases; patched 2.0.2 and official 2.0.4 terminate with errors.
  • Retain the five security regressions with a two-second subprocess timeout so a synchronous loop cannot hang CI. Add dimension checks for valid inputs in all three affected parsers.
  • Preserve all unrelated lockfile versions. Node >=18 required by image-size 2.0.4 is within this repository's Node >=20.19 support.

Validation on Node 26.10.0 / pnpm 10.34.5:

  • Frozen installation; 13 tests passed.
  • Root and documentation type checks; package and documentation production builds.
  • git diff --check; full diff independently inspected.
  • pnpm audit has no image-size finding; seven unrelated fast-uri / brace-expansion advisories remain outside this change.

After merge, verify the main-push Pages deployment, production page and Dependabot's natural fixed state. No version tag or npm release is required for this documentation dependency update.

Closes #6

@VdustR VdustR added the dependencies Pull requests that update a dependency file label Oct 2, 2026
@changeset-bot

changeset-bot Bot commented Oct 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0330190

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@VdustR
VdustR marked this pull request as ready for review October 2, 2026 05:22
@VdustR
VdustR merged commit fbb1163 into main Oct 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace verified image-size mitigation with official patched release

1 participant