GHSA-54xq-cgqr-rpm3
sharp vulnerability in libwebp dependency CVE-2023-4863
GHSA-54xq-cgqr-rpm3 is a high vulnerability (CVSS 7.8) in sharp, published November 16, 2023. No source lists public exploit code. Fixed in sharp 0.32.6.
- Severity
- 7.8 HighCVSS 3.1, GitHub Advisories
- Exploit chance
- UnscoredNo EPSS score yet
- Exploitation
- None knownNot on CISA’s or ENISA’s lists
- Fixed in
0.32.6sharp +3 more
Description
Overview
sharp uses libwebp to decode WebP images and versions prior to the latest 0.32.6 are vulnerable to the high severity https://github.com/advisories/GHSA-j7hp-h8jx-5ppr.
Who does this affect?
Almost anyone processing untrusted input with versions of sharp prior to 0.32.6.
How to resolve this?
Using prebuilt binaries provided by sharp?
Most people rely on the prebuilt binaries provided by sharp.
Please upgrade sharp to the latest 0.32.6, which provides libwebp 1.3.2.
Using a globally-installed libvips?
Please ensure you are using the latest libwebp 1.3.2.
Possible workaround
Add the following to your code to prevent sharp from decoding WebP images.
sharp.block({ operation: ["VipsForeignLoadWebp"] });
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Affected packages
| Package | Affected | Fixed |
|---|---|---|
sharpnpm | before 0.32.6 | 0.32.6 |
sharpTuxCare:npm | 0.27.2-tuxcare.0 up to 0.27.2-tuxcare.2, plus listed versions 0.27.20.27.2-tuxcare.1 | 0.27.2-tuxcare.2 |
sharpRoot:npm | before 0.30.7-aikido.2 | 0.30.7-aikido.20.30.7-aikido.30.30.7-aikido.10.32.6-aikido.20.32.6-aikido.1 |
@rootio/sharpRoot:npm | before 0.30.7-root.io.2 | 0.30.7-root.io.20.30.7-root.io.30.30.7-root.io.10.32.6-root.io.20.32.6-root.io.1 |
What each source reports
GitHub Advisories Score used 7.8
sharp vulnerability in libwebp dependency CVE-2023-4863
Overview
sharp uses libwebp to decode WebP images and versions prior to the latest 0.32.6 are vulnerable to the high severity https://github.com/advisories/GHSA-j7hp-h8jx-5ppr.
Who does this affect?
Almost anyone processing untrusted input with versions of sharp prior to 0.32.6.
How to resolve this?
Using prebuilt binaries provided by sharp?
Most people rely on the prebuilt binaries provided by sharp.
Please upgrade sharp to the latest 0.32.6, which provides libwebp 1.3.2.
Using a globally-installed libvips?
Please ensure you are using the latest libwebp 1.3.2.
Possible workaround
Add the following to your code to prevent sharp from decoding WebP images.
sharp.block({ operation: ["VipsForeignLoadWebp"] });
- Record
GHSA-54xq-cgqr-rpm3- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV 7.8
sharp vulnerability in libwebp dependency CVE-2023-4863
Overview
sharp uses libwebp to decode WebP images and versions prior to the latest 0.32.6 are vulnerable to the high severity https://github.com/advisories/GHSA-j7hp-h8jx-5ppr.
Who does this affect?
Almost anyone processing untrusted input with versions of sharp prior to 0.32.6.
How to resolve this?
Using prebuilt binaries provided by sharp?
Most people rely on the prebuilt binaries provided by sharp.
Please upgrade sharp to the latest 0.32.6, which provides libwebp 1.3.2.
Using a globally-installed libvips?
Please ensure you are using the latest libwebp 1.3.2.
Possible workaround
Add the following to your code to prevent sharp from decoding WebP images.
sharp.block({ operation: ["VipsForeignLoadWebp"] });
- Record
GHSA-54xq-cgqr-rpm3- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVCLSA-2026-1790458446No score
TuxCare security update for sharp (1 CVE)
TuxCare rebuilt sharp to address 1 CVE. Fixed in 0.27.2-tuxcare.2.
- Record
CLSA-2026-1790458446- Updated
- 2026-11-02
OSVROOT-APP-NPM-GHSA-54xq-cgqr-rpm3No score
GHSA-54xq-cgqr-rpm3 in sharp - Patched by Root
Root has patched GHSA-54xq-cgqr-rpm3 in the sharp package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-GHSA-54xq-cgqr-rpm3- Updated
- 2026-11-02
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.