# CVE-2026-64645: Next.js: Server-Side Request Forgery in rewrites via attacker-controlled destination hostname

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.3
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.46% (percentile 32, 2026-11-26)
- **CWE:** CWE-918, CWE-601
- **Aliases:** GHSA-p9j2-gv94-2wf4
- **Published:** 2026-07-22T23:02:23.000Z
- **Modified:** 2026-10-24T13:10:00.147Z

## 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

## 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

- npm `next`: affected \>= 12.0.0, \< 15.5.21; fixed 15.5.21, 16.2.11 (osv)
- vercel next.js: \>= 12.0.0 \< 15.5.21; \>= 16.0.0, \< 16.2.11 (cvelist)

## Mitigation

- Upgrade next to one of 15.5.21, 16.2.11 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/vercel/next.js/security/advisories/GHSA-p9j2-gv94-2wf4>
- patch: <https://github.com/vercel/next.js/commit/35f501357e9b0fe7c950b0d6aa8fcf5343f707e9>
- patch: <https://github.com/vercel/next.js/commit/d3033266c6dff23f7be71e19341fe3a8c6e2c599>
- other: <https://github.com/vercel/next.js/releases/tag/v15.5.21>
- other: <https://github.com/vercel/next.js/releases/tag/v16.2.11>
- other: <https://github.com/vercel/next.js>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64645>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-p9j2-gv94-2wf4> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-64645> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64645>
