Out-of-bounds Read Affecting sharp package, versions <0.35.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-SHARP-18184416
  • published22 Jul 2026
  • disclosed21 Jul 2026
  • creditElhanan Haenel

Introduced: 21 Jul 2026

NewCVE-2026-35590  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade sharp to version 0.35.0 or higher.

Overview

sharp is a High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images

Affected versions of this package are vulnerable to Out-of-bounds Read and null pointer dereference in the bundled libvips EXIF decoder, which does not validate the range of EXIF tag groups before passing them to libexif. An attacker can crash the process by supplying an image whose embedded EXIF metadata carries an out-of-range tag group. Exploitation requires the application to process an untrusted image whose EXIF metadata sharp reads.

CVSS Base Scores

version 4.0
version 3.1