Next.js: Server-Side Request Forgery in rewrites via attacker-controlled destination hostname
CVE-2026-64645Published 27 Jul 2026, 17:37 UTC
Real-world risk
3.1/ 10Low
Routine
If the vulnerable configuration applies to you: 6.8
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.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 12.0.0 through 15.5.20 and 16.0.0 through 16.2.10, a rewrites() or redirects() rule that builds its external destination hostname from request-controlled input can be pointed at an arbitrary hostname, regardless of the rule's hostname suffix. For a rewrite, Next.js proxies the request to that arbitrary host and serves the response from the application's origin, leading to Server-Side Request forgery. A redirects() rule configured this way is vulnerable to an Open Redirect. 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 | >= 12.0.0 < 15.5.21; >= 16.0.0, < 16.2.11 | 16.2.11 |
What to do
Update to a fixed version: 16.2.11.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| 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.9% chance of exploitation in 30 days (percentile 62), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.45 × threat 0.853.060
- Rounded to one decimal between 0.1 and 103.1
Exploitation and evidence timeline
- 27 Jul 2026 Published
- 3 Dec 2026 Risk 3.1 (cvss fallback)
Weakness
CWE-601, CWE-918
References
- https://github.com/vercel/next.js/security/advisories/GHSA-p9j2-gv94-2wf4vendor-advisory
- https://github.com/vercel/next.js/commit/35f501357e9b0fe7c950b0d6aa8fcf5343f707e9misc
- https://github.com/vercel/next.js/commit/d3033266c6dff23f7be71e19341fe3a8c6e2c599misc
- https://github.com/vercel/next.js/releases/tag/v15.5.21misc
- https://github.com/vercel/next.js/releases/tag/v16.2.11misc
- CVE-2026-64645 on CVE.org