CVE-2025-59471
Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration
Record summary
CVE-2025-59471 has a selected CVSS score of 5.9 (medium).
Description
A denial of service vulnerability exists in self-hosted Next.js applications that have `remotePatterns` configured for the Image Optimizer. The image optimization endpoint (`/_next/image`) loads external images entirely into memory without enforcing a maximum size limit, allowing an attacker to cause out-of-memory conditions by requesting optimization of arbitrarily large images. This vulnerability requires that `remotePatterns` is configured to allow image optimization from external domains and that the attacker can serve or control a large image on an allowed domain. Strongly consider upgrading to 15.5.10 or 16.1.5 to reduce risk and prevent availability issues in Next applications.
Exploitation context
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Jan 27, 2026 · Source: CVE List
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
Default status: unaffected | CVE List | 10.0 to < 10.0 | affected |
| 11.0 to < 11.0 | affected | ||
| 12.0 to < 12.0 | affected | ||
| 13.0 to < 13.0 | affected | ||
| 14.0 to < 14.0 | affected | ||
| 15.0 to < 15.5.10 | affected | ||
| 16.0 to < 16.1.5 | affected | ||
| GitHub Advisory | 10.0.0 to < 15.5.10 · Fixed in 15.5.10 | affected | |
| 15.6.0-canary.0 to < 16.1.5 · Fixed in 16.1.5 | affected |