{"id":"GHSA-2xp9-vwfh-vxw4","revision":"e7671847e1314cbf9b5dea662a1fba3e","records":[{"revision":"e7671847e1314cbf9b5dea662a1fba3e","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-2xp9-vwfh-vxw4","aliases":[],"title":"Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used","description":"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.","state":0,"publishedAt":"2026-09-08T21:21:12+00:00","modifiedAt":"2026-09-08T21:30:04.7671899+00:00","affected":[{"ecosystem":"npm","name":"next","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"10.0.0"},{"kind":"fixed","version":"15.5.24"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"next","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"16.0.0"},{"kind":"fixed","version":"16.3.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497","https://github.com/vercel/next.js/security/advisories/GHSA-2xp9-vwfh-vxw4","https://github.com/vercel/next.js/pull/97875","https://github.com/vercel/next.js/pull/97931","https://github.com/vercel/next.js/commit/3a15b4ac6ac8e70b1a9b18ecc18e8434462899b3","https://github.com/vercel/next.js/commit/409772ec807def20132d251ad48fd8d8ad4c73c2","https://github.com/vercel/next.js/commit/7a5937a8ab20b89d0a961f75eabb11577f5d5998","https://github.com/vercel/next.js","https://github.com/vercel/next.js/releases/tag/v15.5.24","https://github.com/vercel/next.js/releases/tag/v16.3.3"],"sourceUrl":"https://github.com/advisories/GHSA-2xp9-vwfh-vxw4","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-2xp9-vwfh-vxw4","identifiers":["GHSA-2xp9-vwfh-vxw4"]},"retained":false,"historicalAffected":[]}],"coverage":[]}