GitHub Advisoryadvisory · npm

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

CRITICAL Published 2026-09-08 Modified 2026-09-08 Official page ↗
Ecosystem
npm
Packages
next
Severity
Critical
CVSS 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
Weaknesses
CWE-1395
Reviewed
2026-09-08

Affected packages

• npm next: >= 10.0.0, < 15.5.24 → fixed in 15.5.24 • npm next: >= 16.0.0, < 16.3.3 → fixed in 16.3.3

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.

Related

Weakness · CWE (1)

  • CWE-1395 Dependency on Vulnerable Third-Party Component weakness

References