Advisory

GHSA-54xq-cgqr-rpm3

Also known as: None

Summary

sharp vulnerability in libwebp dependency CVE-2023-4863

Details

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"] });

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-11-16 17:14 UTC
Modified
2023-11-16 17:14 UTC

Affected packages and fixes

sharp

npm · All systems

Affected

  • introduced 0, fixed 0.32.6 (semver)

Fixed versions

0.32.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences