GHSA-2xp9-vwfh-vxw4
critical
Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used
- Severity
- critical CVSS:4.0 by GitHub
- Published
- Last changed
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.
Until a fix has propagated, optimization of AVIF files is disabled.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| next (npm) | from 10.0.0 before 15.5.24, from 16.0.0 before 16.3.3 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-2xp9-vwfh-vxw4 changed 2026-09-08 | CC-BY-4.0 |