GHSA-f88m-g3jw-g9cj: Sharp CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591 Vulnerability

HIGH
CWE-1395
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-f88m-g3jw-g9cj
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-1395: Dependency on Vulnerable Third-Party Component
Affected Product Sharp
Package Ecosystem npm
Published Date
Last Updated

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.

sharp fixed: 0.35.0
npm install sharp@0.35.0
Verify Direct and Transitive Dependencies

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

### Impact A number of vulnerabilities, two rated as "High" severity using CVSSv4, have been discovered and fixed in the upstream libvips dependency. Those processing untrusted input with versions of sharp prior to 0.35.0 are affected. ### 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.3, which provides libvips 8.18.3. #### Using a globally-installed libvips? Please ensure you are using the latest libvips 8.18.3. ### Workarounds Add the following to your code to prevent sharp from decoding GIF, TIFF and VIPS images. ```js sharp.block({ operation: ["VipsForeignLoadNsgif", "VipsForeignLoadTiff", "VipsForeignLoadVips"] }); ```

GHSA-f88m-g3jw-g9cj Affected Sharp Versions

1 component(s)
Fixed Versions:
0.35.0
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?
GHSA-f88m-g3jw-g9cj is a security vulnerability in Sharp involving CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591 under CWE-1395: Dependency on Vulnerable Third-Party Component.
Which Sharp versions are affected?
Affected versions include releases prior to 0.35.0 across affected packages: sharp.
What version fixes GHSA-f88m-g3jw-g9cj?
Upgrading to 0.35.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sharp affected?
Yes, sharp is affected in releases prior to 0.35.0. Upgrade your dependency to 0.35.0 or later.
What CWE is associated with GHSA-f88m-g3jw-g9cj?
GHSA-f88m-g3jw-g9cj is classified under CWE-1395: Dependency on Vulnerable Third-Party Component (The product has a dependency on a third-party component that contains one or more known vulnerabilities.).
How can I check npm dependencies for GHSA-f88m-g3jw-g9cj?
Run the dependency tree command: 'npm ls sharp'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}