{"id":"GHSA-54xq-cgqr-rpm3","aliases":["GHSA-54xq-cgqr-rpm3"],"related":[],"kind":"vulnerability","state":"published","title":"sharp vulnerability in libwebp dependency CVE-2023-4863","summary":"## Overview\n\nsharp 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.\n\n## Who does this affect?\n\nAlmost anyone processing untrusted input with versions of sharp prior to 0.32.6.\n\n## How to resolve this?\n\n### Using prebuilt binaries provided by sharp?\n\nMost people rely on the prebuilt binaries provided by sharp.\n\nPlease upgrade sharp to the latest 0.32.6, which provides libwebp 1.3.2.\n\n### Using a globally-installed libvips?\n\nPlease ensure you are using the latest libwebp 1.3.2.\n\n## Possible workaround\n\nAdd the following to your code to prevent sharp from decoding WebP images.\n```js\nsharp.block({ operation: [\"VipsForeignLoadWebp\"] });\n```","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"## Overview\n\nsharp 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.\n\n## Who does this affect?\n\nAlmost anyone processing untrusted input with versions of sharp prior to 0.32.6.\n\n## How to resolve this?\n\n### Using prebuilt binaries provided by sharp?\n\nMost people rely on the prebuilt binaries provided by sharp.\n\nPlease upgrade sharp to the latest 0.32.6, which provides libwebp 1.3.2.\n\n### Using a globally-installed libvips?\n\nPlease ensure you are using the latest libwebp 1.3.2.\n\n## Possible workaround\n\nAdd the following to your code to prevent sharp from decoding WebP images.\n```js\nsharp.block({ operation: [\"VipsForeignLoadWebp\"] });\n```","format":"markdown","source":"ghsa"}],"published":"2023-11-16T17:14:15.000Z","modified":"2023-11-16T17:14:15.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.32.6"}],"ecosystem":"npm","package":"sharp","purl":"pkg:npm/sharp","source":"ghsa"}],"references":[{"url":"https://github.com/lovell/sharp/security/advisories/GHSA-54xq-cgqr-rpm3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/lovell/sharp/commit/dbce6fab795ca4250bda9b1ef502c1fdb7d4a30c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/lovell/sharp","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-54xq-cgqr-rpm3","url":"https://github.com/advisories/GHSA-54xq-cgqr-rpm3","licence":"CC-BY-4.0","modified":"2023-11-16T17:14:15.000Z"}],"updatedAt":"2026-11-25T22:56:44.121Z"}