CVE-2026-64645
Next.js: Server-Side Request Forgery in rewrites via attacker-controlled destination hostname
Also known as GHSA-p9j2-gv94-2wf4
Mitigation
- Upgrade next to one of 15.5.21, 16.2.11 (or later in the same release line).
Who should check
- Projects that depend on npm package next (>= 12.0.0, < 15.5.21)
- Anyone running vercel next.js >= 12.0.0 < 15.5.21; >= 16.0.0, < 16.2.11
Vulnerability facts
- Affected
- next >= 12.0.0, < 15.5.21
- Fixed in
- 15.5.21, 16.2.11
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- EPSS
- 0.46% chance of exploitation in 30 days (percentile 32, 2026-11-26)
- CWE
- CWE-918, CWE-601
- Modified
Description
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-64645. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-64645.md Affected: next >= 12.0.0, < 15.5.21 Fixed in: 15.5.21, 16.2.11 Steps: 1. Search this machine and project for next (npm), vercel next.js: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-64645 being exploited?
There is no confirmed exploitation: CVE-2026-64645 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-64645?
High: CVSS 8.3 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-64645?
next >= 12.0.0, < 15.5.21.
Is there a fix for CVE-2026-64645?
Yes. Fixed in 15.5.21, 16.2.11. Upgrade next to one of 15.5.21, 16.2.11 (or later in the same release line).
How do I check if I'm affected by CVE-2026-64645?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.