Skip to content

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

CriticalCVSS 9.5
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
npm next(npm) >= 10.0.0, < 15.5.24; >= 16.0.0, < 16.3.3 15.5.24, 16.3.3 Fixed

Affected products

ProductAffected versionsFixed in
npm next(npm) >= 10.0.0, < 15.5.24 15.5.24
npm next(npm) >= 16.0.0, < 16.3.3 16.3.3

References