What happened
A flaw in libheif, which sharp uses to read AVIF images, let a malicious image sent to Next.js Image Optimization run code on the server. The patched releases turn AVIF optimization off.
Separately, CVE-2026-75604 allowed code execution on Windows-hosted servers running both the Pages Router and the App Router without Cache Components. Linux and macOS hosts weren't affected by that one.
What to do
- Upgrade Next.js to the latest release on your line, rebuild and redeploy.
