NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

GHSA-2xp9-vwfh-vxw4: Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used

criticalCVSS 4.0 9.5

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.

Published Sep 8, 2026

Affected packages

next

Ecosystem
npm
Affected
>= 10.0.0, < 15.5.24
Fixed in
15.5.24
Check
npm ls next

next

Ecosystem
npm
Affected
>= 16.0.0, < 16.3.3
Fixed in
16.3.3
Check
npm ls next

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries