Vulnerabilities

Vulnerability · CVE-2026-114112

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

Published Sep 8, 2026 · catalog updated Oct 21, 2026 · sharp: Vulnerabilities in libheif:

Check if you run it

No confirmed exploitation is on record for CVE-2026-114112. EPSS is 0.19%. Act only if a listed version of sharp: Vulnerabilities in libheif: is installed.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (sharp: Vulnerabilities in libheif:).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
High—
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
0.19%
Remediation
Advisory link
Affected products
npm sharp

### Impact 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. ### 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.4, which provides libheif 1.23.2. #### Using a globally-installed libheif? Please ensure you are using the latest libheif 1.23.2. ### Workarounds Add the following to your code to prevent sharp from decoding AVIF images. Ensure you are using a 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. ### References - [CVE-2026-84383](https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497) - https://github.com/strukturag/libheif/security/advisories/GHSA-2jg2-4ch7-h545

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • npm sharp0 → 0.35.4

How to fix CVE-2026-114112

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2026-114112. EPSS is 0.19%. Act only if a listed version of sharp: Vulnerabilities in libheif: is installed.

Which versions are affected?

Compare what you have installed with 0 → 0.35.4. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-122: Heap-based Buffer Overflow. EPSS 0.19%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Sep 8, 2026 · GitHub Advisory Database

    Detected

    ### Impact 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

  2. Oct 21, 2026 · GitHub Advisory Database

    Fix available

    sharp fixed in 0.35.4

  3. Oct 21, 2026 · GitHub Advisory Database

    Fix available

    sharp fixed in 0.35.4

  4. Oct 21, 2026 · GitHub Advisory Database

    Updated

    ### Impact 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

Sources

References

Freshness

Last verified in this catalog Oct 23, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.