CVE-2026-114111
JSON

8.9high

Sharp before 0.35.5 RCE via librsvg Dependency Memory Vulnerability

Severity
8.9high CVSS:4.0 by VulnCheck
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-wq5f-xc86-pv6w

Description

sharp before 0.35.5 bundles a librsvg dependency affected by a memory-related vulnerability (CVE-2026-96889) that, under certain runtime-specific conditions, can lead to code execution on glibc-based Linux. An attacker can supply a crafted SVG image that, when decoded by sharp through librsvg, may result in arbitrary code execution.

Affected

Product or packageVersionsReported by
lovell sharpbefore 0.35.5
Not affected: 0.35.5
CVE List
sharp (npm)before 0.35.5GitHub Advisory Database

All scores

VulnCheck8.9high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Classification

CWE-416CWE-1395

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

sharp before 0.35.5 bundles a librsvg dependency affected by a memory-related vulnerability (CVE-2026-96889) that, under certain runtime-specific conditions, can lead to code execution on glibc-based Linux. An attacker can supply a crafted SVG image that, when decoded by sharp through librsvg, may result in arbitrary code execution.

GitHub Advisory Database
Impact

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.

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.5, which provides librsvg 2.63.2.

Using a globally-installed librsvg?

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.

sharp.block({ operation: ["VipsForeignLoadSvg"] });

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

References

Sources

SourceRecordLicence
CVE ListCVE-2026-114111 changed 2026-10-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-wq5f-xc86-pv6w changed 2026-10-21CC-BY-4.0
NVDCVE-2026-114111 changed 2026-10-28Public domain