CVE-2026-64645Next.js: Server-Side Request Forgery in rewrites via attacker-controlled destination hostname
A medium-severity vulnerability reachable over the network, needing no privileges and user interaction. EPSS estimates a 0.5% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.5%
- percentile 32%
- Fix
- Named by a source
- CVE published 27 Jul 2026
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.5% (+0) · Network attack vector (+10) · No privileges required (+5)
Immediate actions
- next (npm): upgrade to 15.5.21 / 16.2.11 or later on your release line.
- Patch: https://github.com/vercel/next.js/commit/35f501357e9b0fe7c950b0d6aa8fcf5343f707e9
- Patch: https://github.com/vercel/next.js/commit/d3033266c6dff23f7be71e19341fe3a8c6e2c599
- Mitigation: https://github.com/vercel/next.js/security/advisories/GHSA-p9j2-gv94-2wf4
Who should check
next (npm) pkg:npm/next
- Affected>= 12.0.0, < 15.5.21Fixed in15.5.21OSV (GHSA-p9j2-gv94-2wf4)
- Affected>= 16.0.0, < 16.2.11Fixed in16.2.11OSV (GHSA-p9j2-gv94-2wf4)
vercel next.js product:vercel/nextjs
- Affected>= 12.0.0, < 15.5.21Affected range ends before15.5.21as published by CNA (CVE List)
- Affected>= 16.0.0, < 16.2.11Affected range ends before16.2.11as published by CNA (CVE List)
- Affected>= 12.0.0, < 15.5.21Affected range ends before15.5.21as published by CPE data (via the NVD API)
- Affected>= 16.0.0, < 16.2.11Affected range ends before16.2.11as published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 6.1 MEDIUM (version 3.1)
- Score from
- NVD
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- required
- Weakness
- CWE-601, CWE-918
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- no
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 27 Jul 2026Published
References
- patchhttps://github.com/vercel/next.js/commit/35f501357e9b0fe7c950b0d6aa8fcf5343f707e9
- patchhttps://github.com/vercel/next.js/commit/d3033266c6dff23f7be71e19341fe3a8c6e2c599
- otherhttps://github.com/vercel/next.js/releases/tag/v15.5.21
- otherhttps://github.com/vercel/next.js/releases/tag/v16.2.11
- mitigationhttps://github.com/vercel/next.js/security/advisories/GHSA-p9j2-gv94-2wf4
- otherhttps://github.com/vercel/next.js
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2026-64645 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-p9j2-gv94-2wf4 (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 36 min ago · osv 36 min ago · nvd 5 min ago · epss 35 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-p9j2-gv94-2wf4