# GHSA-54xq-cgqr-rpm3: sharp vulnerability in libwebp dependency CVE-2023-4863

- Severity: High 7.8 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-11-16T17:14:15.000Z
- Modified: 2023-11-16T17:14:15.000Z

## 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.
```js
sharp.block({ operation: ["VipsForeignLoadWebp"] });
```

(As written by GitHub Advisory Database.)

## Affected

- sharp (npm): before 0.32.6

## References

- <https://github.com/lovell/sharp/security/advisories/GHSA-54xq-cgqr-rpm3> (web)
- <https://github.com/lovell/sharp/commit/dbce6fab795ca4250bda9b1ef502c1fdb7d4a30c> (web)
- <https://github.com/lovell/sharp> (package)

## Sources

- GitHub Advisory Database: [GHSA-54xq-cgqr-rpm3](https://github.com/advisories/GHSA-54xq-cgqr-rpm3), CC-BY-4.0, modified 2023-11-16

---

Page: https://cve.day/GHSA-54xq-cgqr-rpm3 · Whole record: https://cve.day/GHSA-54xq-cgqr-rpm3.json · Rebuilt by cve.day 2026-11-25T22:56:44.121Z
