---
id: GHSA-f88m-g3jw-g9cj
title: >-
  sharp inherited vulnerabilities in libvips: CVE-2026-33327, CVE-2026-33328,
  CVE-2026-35590, CVE-2026-35591
summary: >-
  sharp inherited vulnerabilities in libvips: CVE-2026-33327, CVE-2026-33328,
  CVE-2026-35590, CVE-2026-35591
severity: high
cwe:
  - CWE-1395
vendor: sharp
product: sharp
ecosystem: npm
affected:
  - sharp < 0.35.0
patched:
  - sharp 0.35.0
published: '2026-07-21'
updated: '2026-07-21'
source: GHSA
sourceUrl: 'https://github.com/advisories/GHSA-f88m-g3jw-g9cj'
references:
  - url: 'https://github.com/libvips/libvips/security/advisories/GHSA-2fcj-gj27-279x'
  - url: 'https://github.com/libvips/libvips/security/advisories/GHSA-523x-vhfw-6r76'
  - url: 'https://github.com/libvips/libvips/security/advisories/GHSA-jmwm-wc68-mhwm'
  - url: 'https://github.com/libvips/libvips/security/advisories/GHSA-r98w-4fp7-m9c7'
  - url: 'https://github.com/lovell/sharp/security/advisories/GHSA-f88m-g3jw-g9cj'
  - url: 'https://github.com/advisories/GHSA-f88m-g3jw-g9cj'
tags:
  - ghsa
  - npm
ingestedAt: '2026-07-21T22:55:08.377Z'
---

## Overview

### 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"] });
```

## Affected packages

- `sharp < 0.35.0`

## Remediation

Upgrade to a patched release:

- `sharp 0.35.0`
