{"id":"GHSA-2xp9-vwfh-vxw4","aliases":["GHSA-2xp9-vwfh-vxw4"],"related":[],"kind":"vulnerability","state":"published","title":"Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used","summary":"A vulnerability in the underlying `libheif` library used by `sharp` which Next.js uses for image optimization can lead to remote code execution when AVIF files are optimized.\n\nUntil a fix has propagated, optimization of AVIF files is disabled.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"A vulnerability in the underlying `libheif` library used by `sharp` which Next.js uses for image optimization can lead to remote code execution when AVIF files are optimized.\n\nUntil a fix has propagated, optimization of AVIF files is disabled.","format":"markdown","source":"ghsa"}],"published":"2026-09-08T21:21:12.000Z","modified":"2026-09-08T21:30:04.767Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","rating":"CRITICAL"}],"cwes":["CWE-1395"],"affected":[{"ranges":[{"type":"semver","introduced":"10.0.0","status":"affected","fixed":"15.5.24"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"16.0.0","status":"affected","fixed":"16.3.3"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"}],"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-2xp9-vwfh-vxw4","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/pull/97875","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/pull/97931","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/commit/3a15b4ac6ac8e70b1a9b18ecc18e8434462899b3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/commit/409772ec807def20132d251ad48fd8d8ad4c73c2","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/commit/7a5937a8ab20b89d0a961f75eabb11577f5d5998","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/releases/tag/v15.5.24","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js/releases/tag/v16.3.3","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2xp9-vwfh-vxw4","url":"https://github.com/advisories/GHSA-2xp9-vwfh-vxw4","licence":"CC-BY-4.0","modified":"2026-09-08T21:30:04.767Z"}],"updatedAt":"2026-11-25T22:56:43.697Z"}