All vulnerabilities

npm

CVE-2026-114112

sharp: Vulnerabilities in libheif: GHSA-g89c-p67h-r497 and GHSA-2jg2-4ch7-h545

Severity
High
Published
8 Sept 2026
Last changed
21 Oct 2026
Added to UpHeron
14 Oct 2026
Fixed in
0.35.4
Exploit chance
0.2% in the next 30 daysHigher than 15% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Heap-based buffer overflow (CWE-122)
Also known as
GHSA-rgj7-g3m4-5g8c
Sources
OSV.dev and GitHub

Description

A number of vulnerabilities, two rated as "Critical" severity using CVSSv3, have been discovered and fixed in the upstream libheif dependency. These can lead to possible remote code execution (RCE) on glibc-based Linux when run under certain conditions.

The attack vector for these claims to be "network" however sharp does not provide any networking features so this vulnerability is down-rated to a "High" severity using CVSSv4 but please note its Subsequent System Impact.

Those processing untrusted input with versions of sharp prior to 0.35.4 are affected.

Most people rely on the prebuilt binaries provided by sharp.

Please upgrade sharp to the latest version, currently 0.35.4, which provides libheif 1.23.2.

Please ensure you are using the latest libheif 1.23.2.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

Add the following to your code to prevent sharp from decoding AVIF images.

Ensure you are using a node executable binary compiled as a Position Independent Executable (PIE). Most Linux package managers already do this for protection against RCE however be warned that the "official" Node.js binaries do not.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
sharpnpm · osv:npm:sharp
  • Every version before 0.35.4

About sharp

Weekly downloads (npm)
169,607,885npm, 17 Nov 2026

Vulnerabilities in sharp

In our list
3
Published in the last 12 months
3
Critical, last 12 months
0
High, last 12 months
3
Known exploited
0
Search the list for sharp

References