sharp inherited vulnerabilities in libvips: CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591
Published 21 Jul 2026 · Updated 21 Oct 2026
Affected package
- Affected
- <0.35.0
- Fixed in
- 0.35.0
npm install sharp@0.35.0Details
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"] });Is GHSA-f88m-g3jw-g9cj in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected sharp, and gives you the command that fixes it.
References
- Linkgithub.com/libvips/libvips/security/advisories/GHSA-2fcj-gj27-279x
- Linkgithub.com/libvips/libvips/security/advisories/GHSA-523x-vhfw-6r76
- Linkgithub.com/libvips/libvips/security/advisories/GHSA-jmwm-wc68-mhwm
- Linkgithub.com/libvips/libvips/security/advisories/GHSA-r98w-4fp7-m9c7
- Linkgithub.com/lovell/sharp/security/advisories/GHSA-f88m-g3jw-g9cj
- Packagegithub.com/lovell/sharp
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.