{"schemaVersion":3,"id":"GHSA-2XP9-VWFH-VXW4","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used\n\nA 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.","dates":{"published":"2026-09-08T21:21:12.000Z","modified":"2026-09-08T21:30:04.767Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.5,"severity":"critical","version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","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","computed":true,"selection":"version-preference"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":9.5,"severity":"critical","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","exploitability":null,"impact":null,"computed":true}]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[],"affected":[{"vendor":"Npm","product":"next","name":"next","label":"next","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/next","purlType":"npm","versions":[{"text":"≥ 10.0.0, < 15.5.24","noFixRecorded":false,"fixedIn":null},{"text":"≥ 16.0.0, < 16.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 10.0.0, < 15.5.24 | ≥ 16.0.0, < 16.3.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"purl","cycle":null,"product":{"name":"nextjs","label":"Next.js","category":"framework"}},"hubHref":null}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497","label":"github.com/strukturag/libheif/security/advisories/GHSA-g89c-p67h-r497","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-2xp9-vwfh-vxw4","label":"github.com/vercel/next.js/security/advisories/GHSA-2xp9-vwfh-vxw4","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vercel/next.js/pull/97875","label":"github.com/vercel/next.js/pull/97875","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vercel/next.js/pull/97931","label":"github.com/vercel/next.js/pull/97931","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vercel/next.js/commit/3a15b4ac6ac8e70b1a9b18ecc18e8434462899b3","label":"github.com/vercel/next.js/commit/3a15b4ac6ac8e70b1a9b18ecc18e8434462899b3","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vercel/next.js/commit/409772ec807def20132d251ad48fd8d8ad4c73c2","label":"github.com/vercel/next.js/commit/409772ec807def20132d251ad48fd8d8ad4c73c2","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vercel/next.js/commit/7a5937a8ab20b89d0a961f75eabb11577f5d5998","label":"github.com/vercel/next.js/commit/7a5937a8ab20b89d0a961f75eabb11577f5d5998","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vercel/next.js","label":"github.com/vercel/next.js","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/vercel/next.js/releases/tag/v15.5.24","label":"github.com/vercel/next.js/releases/tag/v15.5.24","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vercel/next.js/releases/tag/v16.3.3","label":"github.com/vercel/next.js/releases/tag/v16.3.3","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["CGA-227X-5WPH-MV2H","CGA-36CH-6JQ2-H4V3","CGA-6M6P-354J-2GQM","CGA-79RF-6C2Q-W4CC","CGA-C32P-FR65-7FGJ","CGA-CCPF-9QRC-MR69","CGA-FJ45-H73W-PGWX","CGA-MV4H-7366-3P6V","CGA-MVWW-WX7C-QFF9","CGA-V87G-4J4X-G4C3","CGA-V96W-82X4-9CFQ","CGA-VP89-68VG-QP6V"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-09-08T21:21:12.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-08T21:30:04.767Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T07:01:39.965Z","stale":false,"partial":false}}