Resource exhaustion in Next.js - CVE-2025-59471

 

Resource exhaustion in Next.js - CVE-2025-59471

Published: January 26, 2026


Vulnerability identifier: #VU122049
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-59471
CWE-ID: CWE-400
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to application does not properly control consumption of internal resources in  Image Optimizer. A remote attacker can pass overly large images via the "/_next/image" API endpoint, trigger resource exhaustion and perform a denial of service (DoS) attack.


Affected software

Next.js

How to mitigate CVE-2025-59471

Install updates from vendor's website.

Next.js - addressed in versions 15.5.10, 16.1.5

External References

Related Security Bulletins