Skip to content

fix(deps): bump sharp to 0.35.4 (GHSA-rgj7-g3m4-5g8c) - #63

Merged
naji247 merged 1 commit into
mainfrom
fix/sharp-ghsa-rgj7
Sep 11, 2026
Merged

naji247 merged 1 commit into
mainfrom
fix/sharp-ghsa-rgj7

Conversation

@naji247

@naji247 naji247 commented Sep 11, 2026

Copy link
Copy Markdown
Member

What changed

  • package.json: pnpm override sharp raised from >=0.35.0 to >=0.35.4.
  • pnpm-lock.yaml: sharp 0.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.

sharp is not a direct dependency. It comes in through next, 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 - pass
  • grep -n "sharp@0.35" pnpm-lock.yaml - only sharp@0.35.4 entries remain
  • pnpm build - pass
  • pnpm typecheck - pass
  • pnpm lint - pass (biome, 27 files, no fixes)
  • pnpm test - pass (14 files, 222 tests)
  • pnpm --filter webmcp-bridge-extension build - pass
  • pnpm --filter webmcp-bridge-extension typecheck - pass

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).
@naji247
naji247 merged commit df7711f into main Sep 11, 2026
4 checks passed
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.

2 participants