GHSA-WQ5F-XC86-PV6W

GHSA-WQ5F-XC86-PV6W is a high-severity use after free vulnerability in sharp (npm), affecting versions < 0.35.5. It is fixed in 0.35.5.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

sharp : Vulnerability in librsvg dependency CVE-2026-96889

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

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.

Memory is accessed after it has been freed, leading to undefined behavior in native code. Typical impact: memory corruption, crash, or potential code execution.

Affected versions

sharp (< 0.35.5)

Security releases

sharp → 0.35.5 (npm)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Upgrade sharp to 0.35.5 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is GHSA-WQ5F-XC86-PV6W? GHSA-WQ5F-XC86-PV6W is a high-severity use after free vulnerability in sharp (npm), affecting versions < 0.35.5. It is fixed in 0.35.5. Memory is accessed after it has been freed, leading to undefined behavior in native code.
  2. Which versions of sharp are affected by GHSA-WQ5F-XC86-PV6W? sharp (npm) versions < 0.35.5 is affected.
  3. Is there a fix for GHSA-WQ5F-XC86-PV6W? Yes. GHSA-WQ5F-XC86-PV6W is fixed in 0.35.5. Upgrade to this version or later.
  4. Is GHSA-WQ5F-XC86-PV6W exploitable, and should I be worried? Whether GHSA-WQ5F-XC86-PV6W is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether GHSA-WQ5F-XC86-PV6W is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix GHSA-WQ5F-XC86-PV6W? Upgrade sharp to 0.35.5 or later.

Other vulnerabilities in sharp

Stop the waste.
Protect your environment with Kodem.