Skip to content

Update dependency sharp to ^0.35.0 [SECURITY] - #15

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-sharp-vulnerability
Open

Update dependency sharp to ^0.35.0 [SECURITY]#15
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-sharp-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Aug 6, 2024

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
sharp (source, changelog) ^0.31.1^0.35.0 age confidence

sharp vulnerability in libwebp dependency CVE-2023-4863

GHSA-54xq-cgqr-rpm3

More information

Details

Overview

sharp uses libwebp to decode WebP images and versions prior to the latest 0.32.6 are vulnerable to the high severity GHSA-j7hp-h8jx-5ppr.

Who does this affect?

Almost anyone processing untrusted input with versions of sharp prior to 0.32.6.

How to resolve this?
Using prebuilt binaries provided by sharp?

Most people rely on the prebuilt binaries provided by sharp.

Please upgrade sharp to the latest 0.32.6, which provides libwebp 1.3.2.

Using a globally-installed libvips?

Please ensure you are using the latest libwebp 1.3.2.

Possible workaround

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

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

Severity

  • CVSS Score: 7.8 / 10 (High)
  • Vector String: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References

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


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 the GitHub Advisory Database (CC-BY 4.0).


Release Notes

lovell/sharp (sharp)

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

v0.34.5

Compare Source

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

  • Add experimental support for prebuilt Linux RISC-V 64-bit binaries.

  • Support building from source with npm v12+, deprecate --build-from-source flag.
    #​4458

  • Add support for BigTIFF output.
    #​4459
    @​throwbi

  • Improve error messaging when only warnings issued.
    #​4465

  • Simplify ICC processing when retaining input profiles.
    #​4468

v0.34.4

Compare Source

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

  • Ensure TIFF subifd and OpenSlide level input options are respected (regression in 0.34.3).

  • Ensure autoOrient occurs before non-90 angle rotation.
    #​4425

  • Ensure autoOrient removes existing metadata after shrink-on-load.
    #​4431

  • TypeScript: Ensure KernelEnum includes linear.
    #​4441
    @​BayanBennett

  • Ensure unlimited flag is passed upstream when reading TIFF images.
    #​4446

  • Support Electron memory cage when reading XMP metadata (regression in 0.34.3).
    #​4451

  • Add sharp-libvips rpath for yarn v5 support.
    #​4452
    @​arcanis

v0.34.3

Compare Source

v0.34.2

Compare Source

v0.34.1

Compare Source

v0.34.0

Compare Source

v0.33.5

Compare Source

v0.33.4

Compare Source

v0.33.3

Compare Source

v0.33.2

Compare Source

v0.33.1

Compare Source

v0.33.0

Compare Source

v0.32.6

Compare Source

v0.32.5

Compare Source

v0.32.4

Compare Source

v0.32.3

Compare Source

v0.32.2

Compare Source

v0.32.1

Compare Source

v0.32.0

Compare Source

v0.31.3

Compare Source

v0.31.2

Compare Source


Configuration

📅 Schedule: (UTC)

  • 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 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 67773a2 to 01478ae Compare October 9, 2024 09:35
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] Oct 9, 2024
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 01478ae to de998ec Compare October 9, 2024 12:45
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Oct 9, 2024
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from de998ec to 7274e17 Compare October 28, 2024 16:36
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] Oct 28, 2024
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 7274e17 to d27553e Compare October 28, 2024 18:39
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Oct 28, 2024
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from d27553e to 5823d27 Compare November 3, 2024 11:18
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] Nov 3, 2024
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 5823d27 to bca37ea Compare November 3, 2024 14:08
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Nov 3, 2024
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] Dec 2, 2024
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from bca37ea to a963058 Compare December 2, 2024 10:19
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Dec 2, 2024
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from a963058 to 0ed577a Compare December 2, 2024 14:51
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.32.6 [security] - autoclosed Dec 8, 2024
@renovate renovate Bot closed this Dec 8, 2024
@renovate
renovate Bot deleted the renovate/npm-sharp-vulnerability branch December 8, 2024 18:58
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] - autoclosed chore(deps): update dependency sharp to ^0.32.6 [security] Dec 8, 2024
@renovate renovate Bot reopened this Dec 8, 2024
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from b13cb1b to 0ed577a Compare December 8, 2024 21:56
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 0ed577a to 3edd1ce Compare December 17, 2024 20:15
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] Dec 17, 2024
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 3edd1ce to d68d679 Compare December 17, 2024 23:48
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Dec 17, 2024
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from d68d679 to 1eaf9e4 Compare December 22, 2024 17:13
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] Dec 22, 2024
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 1eaf9e4 to a5e47ea Compare December 22, 2024 19:19
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Dec 22, 2024
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Jan 30, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 0ab95ac to 0b5b501 Compare February 9, 2025 12:32
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] Feb 9, 2025
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Feb 10, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 0b5b501 to f4ee652 Compare February 10, 2025 03:54
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from f4ee652 to d5230a3 Compare March 5, 2025 04:18
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] Mar 5, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from d5230a3 to e0ad506 Compare March 5, 2025 07:20
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Mar 5, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from e0ad506 to 1d3cb0c Compare March 11, 2025 12:38
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] Mar 11, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 1d3cb0c to d00d47a Compare March 11, 2025 23:11
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Mar 11, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from d00d47a to 49d1f6c Compare March 13, 2025 14:51
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] Mar 13, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 49d1f6c to 3524121 Compare March 13, 2025 18:38
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Mar 13, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 3524121 to 425c90e Compare March 17, 2025 18:46
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] Mar 17, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 425c90e to 27d47a4 Compare March 17, 2025 22:36
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Mar 17, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 27d47a4 to 1443e8e Compare April 3, 2025 20:09
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] Apr 3, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 1443e8e to ee993bd Compare April 3, 2025 22:37
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.33.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Apr 3, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from ee993bd to 185bbce Compare April 17, 2025 18:35
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.32.6 [security] chore(deps): update dependency sharp to ^0.31.1 || ^0.34.0 [security] Apr 17, 2025
@renovate
renovate Bot force-pushed the renovate/npm-sharp-vulnerability branch from 185bbce to 2b6cde6 Compare April 17, 2025 22:51
@renovate renovate Bot changed the title chore(deps): update dependency sharp to ^0.31.1 || ^0.34.0 [security] chore(deps): update dependency sharp to ^0.32.6 [security] Apr 17, 2025
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.

0 participants