Lookup for vulnerable packages by Package URL.
| Purl | pkg:npm/sharp@0.14.1 |
| Type | npm |
| Namespace | |
| Name | sharp |
| Version | 0.14.1 |
| Qualifiers |
|
| Subpath | |
| Is_vulnerable | true |
| Next_non_vulnerable_version | 0.32.6 |
| Latest_non_vulnerable_version | 0.32.6 |
| Affected_by_vulnerabilities |
| 0 |
| url |
VCID-n45w-tfmt-z3cj |
| vulnerability_id |
VCID-n45w-tfmt-z3cj |
| summary |
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.
```js
sharp.block({ operation: ["VipsForeignLoadWebp"] });
``` |
| references |
|
| fixed_packages |
|
| aliases |
GHSA-54xq-cgqr-rpm3, GMS-2023-4343
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-n45w-tfmt-z3cj |
|
| 1 |
|
|
| Fixing_vulnerabilities |
|
| Risk_score | null |
| Resource_url | http://public2.vulnerablecode.io/packages/pkg:npm/sharp@0.14.1 |