{"id":"GHSA-2xp9-vwfh-vxw4","aliases":[],"url":"https://o3.security/vulnerability/GHSA-2xp9-vwfh-vxw4","summary":"Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used","details":"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.","published":"2026-09-08T21:21:12Z","modified":"2026-09-08T21:30:04.767189946Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"next","fixedVersion":"15.5.24"},{"ecosystem":"npm","name":"next","fixedVersion":"16.3.3"}],"fix":{"url":"https://github.com/vercel/next.js/pull/97875","label":"vercel/next.js#97875"},"references":[{"type":"WEB","url":"https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497"},{"type":"WEB","url":"https://github.com/vercel/next.js/security/advisories/GHSA-2xp9-vwfh-vxw4"},{"type":"WEB","url":"https://github.com/vercel/next.js/pull/97875"},{"type":"WEB","url":"https://github.com/vercel/next.js/pull/97931"},{"type":"WEB","url":"https://github.com/vercel/next.js/commit/3a15b4ac6ac8e70b1a9b18ecc18e8434462899b3"},{"type":"WEB","url":"https://github.com/vercel/next.js/commit/409772ec807def20132d251ad48fd8d8ad4c73c2"},{"type":"WEB","url":"https://github.com/vercel/next.js/commit/7a5937a8ab20b89d0a961f75eabb11577f5d5998"},{"type":"PACKAGE","url":"https://github.com/vercel/next.js"},{"type":"WEB","url":"https://github.com/vercel/next.js/releases/tag/v15.5.24"},{"type":"WEB","url":"https://github.com/vercel/next.js/releases/tag/v16.3.3"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-08T21:30:04.767189946Z"}}