chore: upgrade sharp to 0.35.4 to address GHSA-rgj7-g3m4-5g8c, CVE-2026-84383, GHSA-2jg2-4ch7-h545 - #1638
Merged
Merged
Conversation
…26-84383 Refreshes the yarn.lock entries for sharp and its @img/sharp-* prebuilt binaries, which pull in libvips 1.3.3 / libheif 1.23.2. The existing `^0.35.3` ranges already admit the patched 0.35.4 release, so no package.json change is required. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
Contributor
License Audit
Weak Copyleft Packages (informational)
Resolved Packages (8)
|
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.
Fixes SOU-2196
Summary
Refreshes the
yarn.lockentries forsharpfrom0.35.3to0.35.4to address GHSA-rgj7-g3m4-5g8c, which covers the bundled libheif vulnerabilities CVE-2026-84383 (GHSA-g89c-p67h-r497) and GHSA-2jg2-4ch7-h545. Two of these are rated Critical upstream and can lead to remote code execution on glibc-based Linux when decoding untrusted HEIF/AVIF input.sharp 0.35.4ships the prebuilt@img/sharp-libvips-*binaries at1.3.3, which bundle the patched libheif1.23.2.This is a lockfile-only change.
packages/webdeclaressharp: ^0.35.3and the rootsharp@npm:^0.34.5resolution maps to^0.35.3; both already admit0.35.4, so nopackage.jsonchange and no newresolutionsoverride are needed.Verification
yarn why sharp— every instance, including the ones Next.js requests, resolves to the patched version:Confirmed the patched libheif is actually what loads at runtime:
yarn installcleanyarn test— 2153 tests passed across all 4 workspaces🤖 Generated with Claude Code
Note
Low Risk
Lockfile-only dependency bump with no application code changes; residual risk is limited to native image-processing behavior in Next.js/sharp paths after deploy.
Overview
Bumps
sharpfrom 0.35.3 to 0.35.4 viayarn.lockonly (existing^0.35.3ranges already allow this). The lockfile refresh also moves bundled@img/sharp-libvips-*prebuilds to 1.3.3 (patched libheif).This addresses GHSA-rgj7-g3m4-5g8c and related CVE-2026-84383 / GHSA-2jg2-4ch7-h545 (critical RCE risk when decoding untrusted HEIF/AVIF on glibc Linux). CHANGELOG adds a Fixed entry for the upgrade.
Reviewed by Cursor Bugbot for commit c713234. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by cubic
Upgrades
sharpfrom 0.35.3 to 0.35.4 inyarn.lockand adds a CHANGELOG entry. This fixes GHSA-rgj7-g3m4-5g8c plus the related CVE-2026-84383 and GHSA-2jg2-4ch7-h545, which are critical remote code execution risks when decoding untrusted HEIF/AVIF input on glibc-based Linux.^0.35.3ranges already admit 0.35.4, so nopackage.jsonedits orresolutionsoverrides are needed.@img/sharp-libvips-*1.3.3 binaries bundling patched libheif 1.23.2.yarn installis clean and the full test suite (2153 tests) passes.Written for commit c713234. Summary will update on new commits.