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
- 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.
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.
Affected software
| Software | Affected versions |
|---|---|
sharpnpm · osv:npm:sharp |
|
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
- CVE-2026-114111sharp : Vulnerability in librsvg dependency CVE-2026-96889High 6 Oct 2026
- CVE-2026-114113sharp inherited vulnerabilities in libvips: CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591High 21 Jul 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-114112
- GitHub Advisory Database https://github.com/advisories/GHSA-rgj7-g3m4-5g8c