Skip to content

fix(deps): update dependency sharp to v0.35.5 [security] - #4450

Merged
yannickmonney merged 1 commit into
mainfrom
renovate/npm-sharp-vulnerability
Oct 6, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
renovate/npm-sharp-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
sharp (source, changelog) 0.35.4 → 0.35.5 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


sharp : Vulnerability in librsvg dependency CVE-2026-96889

GHSA-wq5f-xc86-pv6w

More information

Details

Impact

A memory-related vulnerability has been discovered and fixed in the upstream librsvg dependency. When certain runtime-specific conditions apply, this vulnerability can lead to possible remote code execution (RCE) on glibc-based Linux.

Patches
Using prebuilt binaries provided by sharp?

Most people rely on the prebuilt binaries provided by sharp.

Please upgrade sharp to the latest version, currently 0.35.5, which provides librsvg 2.63.2.

Using a globally-installed librsvg?

Please ensure you are using the latest librsvg 2.63.2.

Workarounds

Add the following to your code to prevent sharp from decoding SVG images.

sharp.block({ operation: ["VipsForeignLoadSvg"] });

To avoid RCE, ensure you are using a node executable binary compiled as a Position Independent Executable (PIE). Most Linux package managers already use this security-hardening feature however be warned that the "official" Node.js binaries do not.
1

Severity

  • CVSS Score: 8.9 / 10 (High)
  • Vector String: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Release Notes

lovell/sharp (sharp)

v0.35.5

Compare Source

https://github.com/lovell/sharp-libvips/releases/tag/v1.3.4

  • Add upper bounds check on length of linear and GIF delay arrays.

  • Improve error handing when WebAssembly fallback also fails.
    #​4593
    @​lazerg

  • TypeScript: Allow multi-frame options for JXL output.
    #​4602
    @​ramin-010

  • TypeScript: Remove non-existent named export.
    #​4604

  • Increase accepted dimensions when extending an image.
    #​4605

  • Improve gain map support for extract and rotate operations.
    #​4606

  • Tests: Ensure composite tests pass on big endian platforms.
    #​4609


Configuration

📅 Schedule: (in timezone Europe/Zurich)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@yannickmonney

Copy link
Copy Markdown
Contributor

Independent review: ACCEPT at fdf2e8b7c1cb032e6d821305a484ec003cd7228d (Renovate authored; reviewer independent).

Topic Disposition Evidence
SECURITY / supply chain PASS Reviewed all six changed files (+153/−153). Both lockfiles retain identical package-name sets. All 27 sharp-family package entries in each lockfile match npm registry metadata/integrity: sharp and platform wrappers 0.35.5, libvips packages 1.3.4. document-node resolved URLs match npm's published tarball URLs; Bun uses registry package identities with SHA-512 integrity. Only sharp-family resolutions and their dependency references change; no unrelated packages or new packages. All four manifest pins/override update consistently. GHSA-wq5f-xc86-pv6w states vulnerable <0.35.5, first patched 0.35.5; libvips 1.3.4 includes librsvg 2.63.2 for CVE-2026-96889. Runtime Dockerfile installs the locked prebuilt packages with npm ci and checks sharp loads.
CODE / compatibility PASS Previous version 0.35.4. Read upstream versioned changelog through 0.35.5. Patch adds linear/GIF-delay bounds, fallback error handling, JXL typing, removes a nonexistent named export, increases extend dimensions, and fixes extract/rotate gain maps; no affected caller API removal. Complete exact-head import/require search found five sites: web/scripts/optimize-images.ts (metadata, clone, resize, AVIF/WebP); platform/tests/docs-screenshots/webp.ts (metadata/WebP); platform/tests/docs-screenshots/readme-assets.ts (resize, buffer, animated WebP with five frame delays for five frames); platform/tests/integration/lib/document-tools.ts (SVG→PNG, metadata); configs/platform/custom/skills/pptx/pptxgenjs.md (SVG→PNG example). All use default/CommonJS sharp, no removed named export, linear, GIF-delay, JXL, extend, extract or rotate dependency.
CICD PASS Observed 72 SUCCESS, 17 SKIPPED, 1 NEUTRAL (Trivy annotation), 0 failing and 0 pending at 2026-10-06T17:43:12.974316+00:00. All seven CI-ready aggregators SUCCESS: Build, Checks, CLI, E2E, Security, SAST, Commitlint. Successful lanes cover format/lint/types, unit/UI/browser/performance/backend integration, platform/web/docs Playwright, CLI native/cross builds, security audit/scans, all eight stack image builds/scans including sandbox-runtime, smoke and image validation. CI source is synthetic merge 328a290a4e0e3b3bbab2235b671fc7d567f53822, parents base a82b06af824d063e312676a7d175ade5bd4f2833 and reviewed head. Turbo build artifact shows platform/web/docs/ui-docs build MISS/exit 0; typecheck artifact shows those workspaces MISS/exit 0. Prerender reuses those builds (HIT), then runs prerender MISS/exit 0; other green Turbo lanes are not claimed universally uncached. Sandbox-runtime build executes locked document-node npm ci and sharp module load; image validation passes offline pinned document tools as uid 65534 and 10001, including source-checked SVG rasterization and installed integrity assertions. Candidate/fork/attach-release skips are expected for this PR.
DEPLOYMENT PASS Merge updates source only. Serving adoption requires a released/redeployed image; the planned v0.5.75 candidate at 01:30 Europe/Zurich remains a separate release gate. No production adoption asserted. Globally supplied librsvg, if used outside these prebuilt images, must independently be >=2.63.2 per advisory.
RESOURCES PASS Used bounded source/metadata/artifact/log reads and existing CI evidence. No local install, build, stack, tests, reruns, push or branch update. No Ops credential/access used.
Part A: UX / accessibility / locales NOT_APPLICABLE Dependency-only update; no UI, interaction, accessible markup, strings or locale files change.
Part A: docs NOT_APPLICABLE No documented API/usage change required by the patch. Existing PPTX SVG→PNG example remains compatible; no generated docs/screenshots/assets change.
Manual image-processing journeys NOT_RUN No interactive marketing-image regeneration, docs/README retake, or operator document journey was run. Existing CI's synthetic offline document checks cover SVG→PNG functionality; visual/manual judgment remains outside this run.
Migration / data / architecture NOT_APPLICABLE No schema, data migration, tenant boundary, application implementation or architecture change.

No requested changes. Protected squash merge is authorized only after an immediate re-read confirms the exact head, 0 failing/pending checks, successful CI-ready aggregators, MERGEABLE/CLEAN, and time before 19:20Z. No admin bypass or branch update.

@yannickmonney
yannickmonney merged commit 6ad6869 into main Oct 6, 2026
@yannickmonney
yannickmonney deleted the renovate/npm-sharp-vulnerability branch October 6, 2026 17:43
yannickmonney added a commit that referenced this pull request Oct 6, 2026
Apply the three corrections from the independent fact review of #4447
(website scan probing versus the browser fetch, the knowledge database
container and its migration order, and the #4448 entry), and add the changes
merged after the reviewed range: the two-factor grace anchor (#4437) with its
migration note, sharp 0.35.5 for GHSA-wq5f-xc86-pv6w (#4450) with the pinned
sandbox runtime image note, and the All projects archived badge (#4416). Add
known issues for #4438, #4439 and #4448 from their post-merge reviews.

Independent review: ACCEPT at 32d07ec (PR comment 6024188366).
yannickmonney added a commit that referenced this pull request Oct 8, 2026
Every harness, browser and vision stage was built FROM tooling-base, the
one chain that also held the OS packages, Office, TeX, the document
libraries, the Docker engine and the Claude Code environment defaults, and
a guard required it. Any edit there (two apt packages for #4395, the sharp
security bump in #4450, an ENV tweak) re-ran every harness install and
could re-ship ~2 GB of layers to every host.

- harness-base (Python slim + Node + download tools) now builds the
  harnesses, the browser and the document Node libraries; the document
  Python libraries install into their own prefix, Hermes builds on them,
  and all of these arrive in the runtime stage as `COPY --link` layers.
- The OS chain runs from the largest, stablest apt set to the most often
  extended (fonts and browser libraries, Office, TeX, the Docker engine,
  then the everyday tools), and its environment variables moved to the
  runtime stage, below every install.
- The guard now requires that no stage but the runtime reaches the OS
  chain, that the OS chain holds no ENV and keeps its apt order, and that
  the document libraries ship as layers of their own.

Every stage, and the full runtime image including the Playwright MCP
manifest recording, was built locally (arm64).
yannickmonney added a commit that referenced this pull request Oct 9, 2026
Every harness, browser and vision stage was built FROM tooling-base, the
one chain that also held the OS packages, Office, TeX, the document
libraries, the Docker engine and the Claude Code environment defaults, and
a guard required it. Any edit there (two apt packages for #4395, the sharp
security bump in #4450, an ENV tweak) re-ran every harness install and
could re-ship ~2 GB of layers to every host.

- harness-base (Python slim + Node + download tools) now builds the
  harnesses, the browser and the document Node libraries; the document
  Python libraries install into their own prefix, Hermes builds on them,
  and all of these arrive in the runtime stage as `COPY --link` layers.
- The OS chain runs from the largest, stablest apt set to the most often
  extended (fonts and browser libraries, Office, TeX, the Docker engine,
  then the everyday tools), and its environment variables moved to the
  runtime stage, below every install.
- The guard now requires that no stage but the runtime reaches the OS
  chain, that the OS chain holds no ENV and keeps its apt order, and that
  the document libraries ship as layers of their own.

Every stage, and the full runtime image including the Playwright MCP
manifest recording, was built locally (arm64).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant