sharp : Vulnerability in librsvg dependency CVE-2026-96889
### 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. ```js 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
- Products
- sharp
- Affected versions
- Not specified
- Fixed versions
- 0.35.5
- CVEs
- CVE-2026-114111
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 14:09 UTC · Revision 1
Source evidence
sharp : Vulnerability in librsvg dependency CVE-2026-96889
core-osv · Original sourcePublished 6 Oct 2026, 13:43 UTC
### 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. ```js 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
osv:GHSA-wq5f-xc86-pv6w
sharp
Fixed versions: 0.35.5
Complete source record
{
"id": "0206e63c8f8ef7526a25f98b4604ccae9a66173c543f03dd6b5d7043affbb3f6",
"url": "https://osv.dev/vulnerability/GHSA-wq5f-xc86-pv6w",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "sharp : Vulnerability in librsvg dependency CVE-2026-96889",
"summary": "### 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. ```js 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",
"evidence": "osv:GHSA-wq5f-xc86-pv6w",
"products": [
{
"name": {
"value": "sharp",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.35.5",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "GHSA-wq5f-xc86-pv6w",
"aliases": [
"CVE-2026-114111",
"GHSA-wq5f-xc86-pv6w"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
}
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.35.5"
}
]
}
],
"package": {
"name": "sharp",
"purl": "pkg:npm/sharp",
"ecosystem": "npm"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-wq5f-xc86-pv6w/GHSA-wq5f-xc86-pv6w.json"
}
}
],
"modified": "2026-10-21T10:57:27.441638733Z",
"provider": "osv",
"references": [
"https://github.com/lovell/sharp/security/advisories/GHSA-wq5f-xc86-pv6w",
"https://github.com/lovell/sharp/commit/96de105d9d36ab04c76c2b78b97255171630d236",
"https://github.com/lovell/sharp",
"https://github.com/lovell/sharp/releases/tag/v0.35.5",
"https://gitlab.gnome.org/GNOME/librsvg/-/work_items/1241",
"https://www.cve.org/CVERecord?id=CVE-2026-96889"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1395",
"CWE-416"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2026-10-06T13:43:57Z"
}
},
"related_cves": [
{
"value": "CVE-2026-114111",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 392985,
"published_at": "2026-10-06T13:43:57+00:00"
}