CVE-2026-64645: Next.js · Server-Side Request Forgery in rewrites via attacker-controlled destination hostname
Affects nextSource GCVE Database
Not known to be exploited · CVSS 8.3 High : upgrade to 15.5.21 soon.
Data as of 5 Dec 2026, 18:47 UTC
- EPSS
- 0.9% chance of exploitation in 30 days – higher than 61% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 15.5.21, 16.2.11
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 27 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.
What to do
Upgrade next to 15.5.21; next to 16.2.11.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmnext | Affected
| Fixed in
|
| npmnext | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Next.js to version 15.5.21 or later in the 15.x branch, or 16.2.11 or later in the 16.x branch, where this vulnerability is fixed. If immediate upgrade is not possible, avoid constructing external rewrites() or redirects() destination hostnames from user-controlled input. If dynamic subdomains are required, constrain the input to hostname-safe characters (e.g., using regex '[a-z0-9-]+') to prevent arbitrary hostnames.
Description
Next.js versions 12.0.0 through before 15.5.21 and 16.0.0 through before 16.2.11 contain a vulnerability where rewrites() or redirects() rules that construct external destination hostnames from user-controlled input can lead to Server-Side Request Forgery (SSRF) or Open Redirect issues. This occurs because the application proxies requests to arbitrary hosts specified by the attacker, potentially exposing internal resources or redirecting users to malicious sites. The vulnerability is fixed in versions 15.5.21 and 16.2.11.
References
- github.com/vercel/next.js/security/advisories/GHSA-p9j2-gv94-2wf4 (opens in a new tab)
- github.com/vercel/next.js/commit/35f501357e9b0fe7c950b0d6aa8fcf5343f707e9 (opens in a new tab)
- github.com/vercel/next.js/commit/d3033266c6dff23f7be71e19341fe3a8c6e2c599 (opens in a new tab)
- github.com/vercel/next.js (opens in a new tab)
- github.com/vercel/next.js/releases/tag/v15.5.21 (opens in a new tab)
- github.com/vercel/next.js/releases/tag/v16.2.11 (opens in a new tab)