Skip to content

chore(deps): update dependency sharp to ^0.35.4 [security] - #267

Merged
renovate[bot] merged 1 commit into
masterfrom
renovate/npm-sharp-vulnerability
Sep 27, 2026
Merged

renovate[bot] merged 1 commit into
masterfrom
renovate/npm-sharp-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

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

sharp inherited vulnerabilities in libvips: CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591

GHSA-f88m-g3jw-g9cj

More information

Details

Impact

A number of vulnerabilities, two rated as "High" severity using CVSSv4, have been discovered and fixed in the upstream libvips dependency.

Those processing untrusted input with versions of sharp prior to 0.35.0 are affected.

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.3, which provides libvips 8.18.3.

Using a globally-installed libvips?

Please ensure you are using the latest libvips 8.18.3.

Workarounds

Add the following to your code to prevent sharp from decoding GIF, TIFF and VIPS images.

sharp.block({ operation: ["VipsForeignLoadNsgif", "VipsForeignLoadTiff", "VipsForeignLoadVips"] });

Severity

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

References

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


sharp: Vulnerabilities in libheif: GHSA-g89c-p67h-r497 and GHSA-2jg2-4ch7-h545

GHSA-rgj7-g3m4-5g8c

More information

Details

Impact

A number of vulnerabilities, two rated as "Critical" severity using CVSSv3, have been discovered and fixed in the upstream libheif dependency. These can lead to possible remote code execution (RCE) on glibc-based Linux when run under certain conditions.

The attack vector for these claims to be "network" however sharp does not provide any networking features so this vulnerability is down-rated to a "High" severity using CVSSv4 but please note its Subsequent System Impact.

Those processing untrusted input with versions of sharp prior to 0.35.4 are affected.

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.4, which provides libheif 1.23.2.

Using a globally-installed libheif?

Please ensure you are using the latest libheif 1.23.2.

Workarounds

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

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

Ensure you are using a node executable binary compiled as a Position Independent Executable (PIE). Most Linux package managers already do this for protection against RCE however be warned that the "official" Node.js binaries do not.

References

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.4

Compare Source

:::note[Dependency versions]
https://github.com/lovell/sharp-libvips/releases/tag/v1.3.3
:::

v0.35.3

Compare Source

v0.35.2

Compare Source

v0.35.1

Compare Source

  • TypeScript: Ensure type definitions are published for both ESM and CJS.
    #​4537

  • WebAssembly: Ensure wrapper file is published.
    #​4538

v0.35.0

Compare Source

  • Breaking: Drop support for Node.js 18, now requires Node.js >= 20.9.0.

  • Breaking: Remove install script from package.json file.
    Compiling from source is now opt-in via the build script.

  • Breaking: Lossy AVIF output is now tuned using SSIMULACRA2-based iq quality metrics.

  • Breaking: Add limitInputChannels with a default value of 5.

  • Breaking: Remove deprecated failOnError constructor property.

  • Breaking: Remove deprecated paletteBitDepth from metadata response.

  • Breaking: Remove deprecated properties from sharpen operation.

  • Breaking: Rename format.jp2k as format.jp2 for API consistency.

  • Upgrade to libvips v8.18.3 for upstream bug fixes.

  • Remove experimental status from WebAssembly binaries.

  • Add prebuilt binaries for FreeBSD (WebAssembly).

  • Deprecate Windows 32-bit (win32-ia32) prebuilt binaries.

  • Ensure TIFF output bitdepth option is limited to 1, 2 or 4.

  • Add AVIF/HEIF tune option for control over quality metrics.
    #​4227

  • Add keepGainMap and withGainMap to process HDR JPEG images with embedded gain maps.
    #​4314

  • Add toUint8Array for output image as a TypedArray backed by a transferable ArrayBuffer.
    #​4355

  • Require prebuilt binaries using static paths to aid code bundling.
    #​4380

  • TypeScript: Ensure FormatEnum keys match reality.
    #​4475

  • Add margin option to trim operation.
    #​4480
    @​eddienubes

  • Ensure HEIF primary item is used as default page/frame.
    #​4487

  • Add image Media Type (MIME Type) to metadata response.
    #​4492

  • Add withDensity to set output density in EXIF metadata.
    #​4496

  • Improve pkg-config path discovery.
    #​4504

  • Add WebP exact option for control over transparent pixel colour values.

  • Add support for ECMAScript Modules (ESM).
    #​4509
    @​florian-lefebvre


Configuration

📅 Schedule: (UTC)

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

🚦 Automerge: Enabled.

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

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


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

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

@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 1ef96dc to f418d9b Compare July 30, 2026 16:56
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from f418d9b to 91e9d56 Compare August 26, 2026 15:43
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 91e9d56 to b91adbd Compare September 10, 2026 14:38
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.0 [SECURITY] Update dependency sharp to ^0.35.4 [SECURITY] Sep 10, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from b91adbd to ea96a63 Compare September 10, 2026 23:22
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.4 [SECURITY] Update dependency sharp to ^0.35.0 [SECURITY] Sep 10, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from ea96a63 to 995d76b Compare September 11, 2026 03:26
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.0 [SECURITY] Update dependency sharp to ^0.35.4 [SECURITY] Sep 11, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 995d76b to ff3fea2 Compare September 15, 2026 18:00
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.4 [SECURITY] Update dependency sharp to ^0.35.0 [SECURITY] Sep 15, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from ff3fea2 to acd4a58 Compare September 16, 2026 00:52
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.0 [SECURITY] Update dependency sharp to ^0.35.4 [SECURITY] Sep 16, 2026
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.4 [SECURITY] Update dependency sharp to ^0.35.0 [SECURITY] Sep 16, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch 2 times, most recently from 2c1bca0 to 0957924 Compare September 16, 2026 20:47
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.0 [SECURITY] Update dependency sharp to ^0.35.4 [SECURITY] Sep 16, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 0957924 to f499fba Compare September 17, 2026 21:23
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.4 [SECURITY] Update dependency sharp to ^0.35.0 [SECURITY] Sep 17, 2026
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.0 [SECURITY] Update dependency sharp to ^0.35.4 [SECURITY] Sep 17, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch 2 times, most recently from 513e620 to 39bff73 Compare September 18, 2026 21:10
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.4 [SECURITY] Update dependency sharp to ^0.35.0 [SECURITY] Sep 18, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 39bff73 to 6e02dfe Compare September 19, 2026 03:08
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.0 [SECURITY] Update dependency sharp to ^0.35.4 [SECURITY] Sep 19, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 6e02dfe to 372351c Compare September 24, 2026 02:12
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.4 [SECURITY] Update dependency sharp to ^0.35.0 [SECURITY] Sep 24, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 372351c to e18b245 Compare September 25, 2026 12:00
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.0 [SECURITY] Update dependency sharp to ^0.35.4 [SECURITY] Sep 25, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from e18b245 to 50817ca Compare September 27, 2026 11:59
@renovate renovate Bot changed the title Update dependency sharp to ^0.35.4 [SECURITY] chore(deps): update dependency sharp to ^0.35.0 [security] Sep 27, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch 2 times, most recently from 30afe39 to e7cce98 Compare September 27, 2026 15:19
@renovate renovate Bot added dependencies Pull requests that update a dependency file security labels Sep 27, 2026
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from e7cce98 to 139adb3 Compare September 27, 2026 15:45
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 19879f6 to fd263a0 Compare September 27, 2026 16:45
@renovate
renovate Bot enabled auto-merge (squash) September 27, 2026 16:45
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.35.0 [security] chore(deps): update dependency sharp to ^0.35.4 [security] Sep 27, 2026
@renovate
renovate Bot merged commit b64ff6f into master Sep 27, 2026
4 checks passed
@renovate
renovate Bot deleted the renovate/npm-sharp-vulnerability branch September 27, 2026 16:45
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 security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants