critical

GHSA-2xp9-vwfh-vxw4

npm · next

Summary

Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used

Severity
critical
CWE
CWE-1395
Published
2026-09-08
Updated
2026-09-08

Advisory 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.

Until a fix has propagated, optimization of AVIF files is disabled.

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.