GHSA-f88m-g3jw-g9cj: Sharp before 0.35.0 Multiple Vulnerabilities via Bundled libvips Image Decoders

Published Jul 21, 2026
·
Updated

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. js sharp.block({ operation: ["VipsForeignLoadNsgif", "VipsForeignLoadTiff", "VipsForeignLoadVips"] });

Other sources

Sharp before 0.35.0 bundles a version of libvips affected by multiple vulnerabilities (CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591 and CVE-2026-69242) in its GIF, TIFF and VIPS image decoders. Attackers can supply crafted GIF, TIFF or VIPS files to applications using sharp to process untrusted input, triggering these libvips flaws.

— OSV

Affected Software

1 affected componentFixes available
npm/sharp<0.35.0
0.35.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/sharp to a version that resolves this vulnerability.

    Fixed in 0.35.0
  2. Upgrade

    Upgrade libvips to a version that resolves this vulnerability.

    Fixed in 8.18.3
  3. Upgrade

    Upgrade sharp to a version that resolves this vulnerability.

    Fixed in 0.35.3
  4. Configuration

    Add sharp.block({ operation: ["VipsForeignLoadNsgif", "VipsForeignLoadTiff", "VipsForeignLoadVips"] }); to prevent decoding GIF, TIFF, and VIPS images.

    sharp block.operation = VipsForeignLoadNsgif, VipsForeignLoadTiff, VipsForeignLoadVips

Event History

Jul 21, 2026
Advisory Published
via GitHub·10:07 PM
Data Sourced
via GitHub·10:07 PM
DescriptionWeaknessAffected Software
Oct 21, 2026
CVE Published
via OSV·12:37 AM
Data Sourced
via OSV·12:37 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of GHSA-f88m-g3jw-g9cj?

GHSA-f88m-g3jw-g9cj is rated with a severity of 60, classified as high severity using CVSSv4.

2

How do I fix GHSA-f88m-g3jw-g9cj?

To fix GHSA-f88m-g3jw-g9cj, update the sharp package to version 0.35.0 or later.

3

What is the impact of GHSA-f88m-g3jw-g9cj?

The impact of GHSA-f88m-g3jw-g9cj affects applications using sharp versions prior to 0.35.0 that process untrusted input.

4

Which package is affected by GHSA-f88m-g3jw-g9cj?

The GHSA-f88m-g3jw-g9cj vulnerability affects the npm package sharp.

5

What should I do if I cannot upgrade sharp to fix GHSA-f88m-g3jw-g9cj?

If unable to upgrade sharp, consider implementing input validation and restricting the types of input processed as a temporary workaround.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203