VDB
Sign up
CRITICAL

GHSA-2xp9-vwfh-vxw4

Next.js: Unauthenticated Remote Code Execution in Image Optimization API when AVIF files are used

Quick fix

GHSA-2xp9-vwfh-vxw4 — next: upgrade to the fixed version with the command below.

npm install next@15.5.24

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/next
Introduced in: 10.0.0Fixed in: 15.5.24
Fixnpm install next@15.5.24
npm/next
Introduced in: 16.0.0Fixed in: 16.3.3
Fixnpm install next@16.3.3

References