npm
CVE-2026-114111
sharp : Vulnerability in librsvg dependency CVE-2026-96889
- Severity
- High
- Published
- 6 Oct 2026
- Last changed
- 21 Oct 2026
- Added to UpHeron
- 14 Oct 2026
- Fixed in
- 0.35.5
- Exploit chance
- 0.1% in the next 30 daysHigher than 2% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- CWE-1395Use after free (CWE-416)
- Also known as
- GHSA-wq5f-xc86-pv6w
- Sources
- OSV.dev and GitHub
Description
A memory-related vulnerability has been discovered and fixed in the upstream librsvg dependency. When certain runtime-specific conditions apply, this vulnerability can lead to possible remote code execution (RCE) on glibc-based Linux.
Most people rely on the prebuilt binaries provided by sharp.
Please upgrade sharp to the latest version, currently 0.35.5, which provides librsvg 2.63.2.
Please ensure you are using the latest librsvg 2.63.2.
Workarounds
Add the following to your code to prevent sharp from decoding SVG images.
To avoid RCE, ensure you are using a node executable binary compiled as a Position Independent Executable (PIE). Most Linux package managers already use this security-hardening feature however be warned that the "official" Node.js binaries do not. 1
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-114112sharp: Vulnerabilities in libheif: GHSA-g89c-p67h-r497 and GHSA-2jg2-4ch7-h545High 8 Sept 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-114111
- GitHub Advisory Database https://github.com/advisories/GHSA-wq5f-xc86-pv6w