GHSA-54xq-cgqr-rpm3

    Dashboard / Vulnerabilities / GHSA-54xq-cgqr-rpm3

    GHSA-54xq-cgqr-rpm3

    Published: 16 Nov 2023Last Modified: 16 Nov 2023

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

    Affected packages

    Package

    Name: sharp

    Purl: pkg:npm/sharp

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.32.6

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-54xq-cgqr-rpm3 | CVE-DB