GHSA-2xp9-vwfh-vxw4
JSON

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 packageVersionsReported by
next (npm)from 10.0.0 before 15.5.24, from 16.0.0 before 16.3.3GitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-2xp9-vwfh-vxw4 changed 2026-09-08CC-BY-4.0