GHSA-f88m-g3jw-g9cj: Sharp CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591 Vulnerability
HIGHGHSA-f88m-g3jw-g9cj is a HIGH cve-2026-33327, cve-2026-33328, cve-2026-35590, cve-2026-35591 vulnerability (CWE-1395: Dependency on Vulnerable Third-Party Component) affecting Sharp libraries in the npm ecosystem. The issue involves cve-2026-33327, cve-2026-33328, cve-2026-35590, cve-2026-35591. Remediation is available by upgrading affected packages to version 0.35.0.
GHSA-f88m-g3jw-g9cj at a Glance
How to Fix GHSA-f88m-g3jw-g9cj
To remediate this vulnerability, upgrade all affected Sharp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install sharp@0.35.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls sharp
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-f88m-g3jw-g9cj, inspect your project dependencies using npm:
npm ls sharp
Analyze the terminal output to locate any version of Sharp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.35.0), your application is affected.
Note: The npm ls sharp command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1395: Dependency on Vulnerable Third-Party Component, where the product has a dependency on a third-party component that contains one or more known vulnerabilities. In Sharp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-f88m-g3jw-g9cj Affected Sharp Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sharp
|
npm |
< 0.35.0
|
0.35.0
|
References
Frequently Asked Questions
What is GHSA-f88m-g3jw-g9cj?
Which Sharp versions are affected?
What version fixes GHSA-f88m-g3jw-g9cj?
Is sharp affected?
What CWE is associated with GHSA-f88m-g3jw-g9cj?
How can I check npm dependencies for GHSA-f88m-g3jw-g9cj?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f88m-g3jw-g9cj",
"modified" : "2026-07-21T22:07:17Z",
"published" : "2026-07-21T22:07:17Z",
"aliases" : [ ],
"summary" : "sharp inherited vulnerabilities in libvips: CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591",
"details" : "### Impact\n\nA number of vulnerabilities, two rated as \"High\" severity using CVSSv4, have been discovered and fixed in the upstream libvips dependency.\n\nThose processing untrusted input with versions of sharp prior to 0.35.0 are affected.\n\n### Patches\n\n#### Using prebuilt binaries provided by sharp?\n\nMost people rely on the prebuilt binaries provided by sharp.\n\nPlease upgrade sharp to the latest version, currently 0.35.3, which provides libvips 8.18.3.\n\n#### Using a globally-installed libvips?\n\nPlease ensure you are using the latest libvips 8.18.3.\n\n### Workarounds\nAdd the following to your code to prevent sharp from decoding GIF, TIFF and VIPS images.\n```js\nsharp.block({ operation: [\"VipsForeignLoadNsgif\", \"VipsForeignLoadTiff\", \"VipsForeignLoadVips\"] });\n```",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "sharp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.35.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/libvips/libvips/security/advisories/GHSA-2fcj-gj27-279x"
}, {
"type" : "WEB",
"url" : "https://github.com/libvips/libvips/security/advisories/GHSA-523x-vhfw-6r76"
}, {
"type" : "WEB",
"url" : "https://github.com/libvips/libvips/security/advisories/GHSA-jmwm-wc68-mhwm"
}, {
"type" : "WEB",
"url" : "https://github.com/libvips/libvips/security/advisories/GHSA-r98w-4fp7-m9c7"
}, {
"type" : "WEB",
"url" : "https://github.com/lovell/sharp/security/advisories/GHSA-f88m-g3jw-g9cj"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lovell/sharp"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1395" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-21T22:07:17Z",
"nvd_published_at" : null
}
}