sharp code execution in SVG decoding via librsvg
lovell sharp
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| sharp npm |
|
|
Original 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.
From the CVE record · VulnCheck
References
- github.com/lovell/sharp/security/advisories/GHSA-wq5f-xc86-pv6w
- vulncheck.com/advisories/sharp-before-0.35.5-rce-via-librsvg-dependency-memory-vulnerability
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/114xxx/CVE-2026-114111.json
- nvd.nist.gov/vuln/detail/CVE-2026-114111
- github.com/lovell/sharp/commit/96de105d9d36ab04c76c2b78b97255171630d236
- github.com/lovell/sharp
- github.com/lovell/sharp/releases/tag/v0.35.5
- gitlab.gnome.org/GNOME/librsvg/-/work_items/1241
- cve.org/CVERecord?id=CVE-2026-96889