Resource exhaustion in Next.js - CVE-2026-64644
Published: July 22, 2026
Next.js
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to uncontrolled resource consumption in the Image Optimization API endpoint when processing remotely hosted malicious SVG images through the /_next/image endpoint. A remote attacker can supply a specially crafted SVG image to cause a denial of service.
Only self-hosted deployments using the default image loader with remote image optimization configured are vulnerable. Only configured remotePatterns are affected, and exploitation can lead to CPU exhaustion.