Next.js: Denial of Service in the Image Optimization API using SVGs
CVE-2026-64644Published 27 Jul 2026, 17:54 UTC
Real-world risk
1.1/ 10Low
Routine
If the vulnerable configuration applies to you: 2.6
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.3
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
Next.js is a React framework for building full-stack web applications. In versions 15.5.0 through 15.5.20 and 16.0.0 through 16.2.10, when self-hosting Next.js with the default image loader, the Image Optimization API can optimize remotely hosted images if configured (not enabled by default). If those images contain malicious content, they can cause CPU exhaustion in /_next/image endpoints.Only config.images.remotePatterns is affected, and just the patterns in that array, whereas config.images.unoptimized: true, config.images.loader: 'custom', and Vercel are not impacted. This issue has been fixed in versions 15.5.21 and 16.2.11.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Next.jsUbiquitous | >= 15.5.0, < 15.5.21; >= 16.0.0, < 16.2.11 | 15.5.21, 16.2.11 |
What to do
Update to a fixed version: 15.5.21, 16.2.11.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.7% chance of exploitation in 30 days (percentile 54), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.45 × threat 0.851.147
- Rounded to one decimal between 0.1 and 101.1
Exploitation and evidence timeline
- 27 Jul 2026 Published
- 3 Dec 2026 Risk 1.1 (cvss fallback)
Weakness
CWE-407
References
- https://github.com/vercel/next.js/security/advisories/GHSA-q8wf-6r8g-63chvendor-advisory
- https://github.com/vercel/next.js/pull/96006misc
- https://github.com/vercel/next.js/commit/93cb90891402fa4c47798d03cb9e05c13233766cmisc
- https://github.com/vercel/next.js/releases/tag/v15.5.21misc
- https://github.com/vercel/next.js/releases/tag/v16.2.11misc
- CVE-2026-64644 on CVE.org