Advisory

GHSA-2xp9-vwfh-vxw4

Also known as: None

Summary

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

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-09-08 21:21 UTC
Modified
2026-09-08 21:30 UTC

Affected packages and fixes

next

npm · All systems

Affected

  • introduced 10.0.0, fixed 15.5.24 (semver)

Fixed versions

15.5.24

Fix

next

npm · All systems

Affected

  • introduced 16.0.0, fixed 16.3.3 (semver)

Fixed versions

16.3.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences