Sharp Inherited Vulnerabilities
Affects sharpSource GCVE Database
Mentioned vulnerabilities
CVSS 7.0 High : upgrade to 0.35.0 soon.
Data as of 22 Jul 2026, 00:36 UTC
- Patch
- Available – fixed in 0.35.0
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:NWhat to do
Upgrade sharp to 0.35.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmsharp | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade sharp to version 0.35.3 or later, which includes libvips 8.18.3 containing the fixes. If using a globally installed libvips, update it to version 8.18.3. As a temporary workaround, configure sharp to block decoding of GIF, TIFF, and VIPS images by adding sharp.block({ operation: ["VipsForeignLoadNsgif", "VipsForeignLoadTiff", "VipsForeignLoadVips"] }); to your code. No other immediate actions are indicated by the vendor advisory.
Description
Multiple vulnerabilities, including two rated as high severity under CVSSv4, were found and fixed in the libvips library used by sharp. Versions of sharp prior to 0.35.0 that process untrusted input are affected. The vulnerabilities have been addressed in libvips 8.18.3, which is included starting with sharp version 0.35.0. Users relying on prebuilt sharp binaries should upgrade to at least version 0.35.3. Those using a globally installed libvips must ensure it is updated to 8.18.3. As a workaround, sharp can be configured to block decoding of GIF, TIFF, and VIPS images to mitigate risk until patched. No known exploits are reported in the wild.
References
- github.com/libvips/libvips/security/advisories/GHSA-2fcj-gj27-279x (opens in a new tab)
- github.com/libvips/libvips/security/advisories/GHSA-523x-vhfw-6r76 (opens in a new tab)
- github.com/libvips/libvips/security/advisories/GHSA-jmwm-wc68-mhwm (opens in a new tab)
- github.com/libvips/libvips/security/advisories/GHSA-r98w-4fp7-m9c7 (opens in a new tab)
- github.com/lovell/sharp/security/advisories/GHSA-f88m-g3jw-g9cj (opens in a new tab)
- github.com/lovell/sharp (opens in a new tab)