Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. sharp
  4. ›
  5. GHSA-rgj7-g3m4-5g8c

GHSA-rgj7-g3m4-5g8c: sharp: Vulnerabilities in libheif: GHSA-g89c-p67h-r497 and GHSA-2jg2-4ch7-h545

September 8, 2026

A number of vulnerabilities, two rated as “Critical” severity using CVSSv3, have been discovered and fixed in the upstream libheif dependency. These can lead to possible remote code execution (RCE) on glibc-based Linux when run under certain conditions.

The attack vector for these claims to be “network” however sharp does not provide any networking features so this vulnerability is down-rated to a “High” severity using CVSSv4 but please note its Subsequent System Impact.

Those processing untrusted input with versions of sharp prior to 0.35.4 are affected.

References

  • github.com/advisories/GHSA-rgj7-g3m4-5g8c
  • github.com/lovell/sharp/releases/tag/v0.35.4
  • github.com/lovell/sharp/security/advisories/GHSA-rgj7-g3m4-5g8c
  • github.com/strukturag/libheif/security/advisories/GHSA-2jg2-4ch7-h545
  • github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497

Code Behaviors & Features

Detect and mitigate GHSA-rgj7-g3m4-5g8c with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.35.4

Fixed versions

  • 0.35.4

Solution

Upgrade to version 0.35.4 or above.

Impact 9.3 CRITICAL

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-122: Heap-based Buffer Overflow

Source file

npm/sharp/GHSA-rgj7-g3m4-5g8c.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:21:17 +0000.