fix(deps): bump sharp to 0.35.4 (GHSA-rgj7-g3m4-5g8c) - #63
Merged
Merged
Conversation
sharp is a transitive dependency pulled in by next. Raise the pnpm override from >=0.35.0 to >=0.35.4 so the lockfile resolves sharp 0.35.3 -> 0.35.4, which ships the patched libvips/libheif binaries (@img/sharp-libvips-* 1.3.2 -> 1.3.3).
kashishhora
approved these changes
Sep 11, 2026
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.
What changed
package.json: pnpm overridesharpraised from>=0.35.0to>=0.35.4.pnpm-lock.yaml:sharp0.35.3 -> 0.35.4, with its@img/sharp-*platform binaries 0.35.3 -> 0.35.4 and@img/sharp-libvips-*1.3.2 -> 1.3.3. No other packages changed.sharpis not a direct dependency. It comes in throughnext, so the override is the way to pin the resolved version.Why
Fixes Dependabot alert #130: https://github.com/agentcathq/webmcp-react/security/dependabot/130
Advisory GHSA-rgj7-g3m4-5g8c (sharp < 0.35.4 bundles libheif with known vulnerabilities): GHSA-rgj7-g3m4-5g8c
sharp 0.35.4 ships libvips 1.3.3 binaries with the patched libheif.
Verification
All commands run with pnpm 10 (
npx -y pnpm@10, v10.34.5), matching the CI workflow.rm -rf node_modules && pnpm install --frozen-lockfile- passgrep -n "sharp@0.35" pnpm-lock.yaml- onlysharp@0.35.4entries remainpnpm build- passpnpm typecheck- passpnpm lint- pass (biome, 27 files, no fixes)pnpm test- pass (14 files, 222 tests)pnpm --filter webmcp-bridge-extension build- passpnpm --filter webmcp-bridge-extension typecheck- pass