CVE-2026-64645: CWE-918: Server-Side Request Forgery (SSRF) in vercel next.js
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.
AI Analysis
Technical Summary
Next.js, a React framework, is vulnerable to SSRF and open redirect attacks in versions >=12.0.0 <15.5.21 and >=16.0.0 <16.2.11. The vulnerability arises when rewrites() or redirects() rules build external destination hostnames from request-controlled input, bypassing hostname suffix restrictions. For rewrites, the server proxies requests to attacker-controlled hosts and returns the response, enabling SSRF. Redirects configured similarly allow open redirects. These vulnerabilities have been addressed in Next.js versions 15.5.21 and 16.2.11.
Potential Impact
An attacker can exploit this vulnerability to make the Next.js server send requests to arbitrary hosts, potentially accessing internal resources or services not directly reachable by the attacker (SSRF). Additionally, open redirect vulnerabilities can facilitate phishing or redirect users to malicious sites. The CVSS 4.0 score is 8.3 (high severity), indicating significant risk if exploited.
Mitigation Recommendations
Upgrade Next.js to version 15.5.21 or later in the 15.x series, or 16.2.11 or later in the 16.x series, where this vulnerability is fixed. No other mitigations are specified. Patch status is confirmed fixed in these versions.
CVE-2026-64645: CWE-918: Server-Side Request Forgery (SSRF) in vercel next.js
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.
CVSS v4.0
Score 8.3high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Next.js, a React framework, is vulnerable to SSRF and open redirect attacks in versions >=12.0.0 <15.5.21 and >=16.0.0 <16.2.11. The vulnerability arises when rewrites() or redirects() rules build external destination hostnames from request-controlled input, bypassing hostname suffix restrictions. For rewrites, the server proxies requests to attacker-controlled hosts and returns the response, enabling SSRF. Redirects configured similarly allow open redirects. These vulnerabilities have been addressed in Next.js versions 15.5.21 and 16.2.11.
Potential Impact
An attacker can exploit this vulnerability to make the Next.js server send requests to arbitrary hosts, potentially accessing internal resources or services not directly reachable by the attacker (SSRF). Additionally, open redirect vulnerabilities can facilitate phishing or redirect users to malicious sites. The CVSS 4.0 score is 8.3 (high severity), indicating significant risk if exploited.
Mitigation Recommendations
Upgrade Next.js to version 15.5.21 or later in the 15.x series, or 16.2.11 or later in the 16.x series, where this vulnerability is fixed. No other mitigations are specified. Patch status is confirmed fixed in these versions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-p9j2-gv94-2wf4
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64645"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a616bcd9c2644c7f80dbda1
Added to database: 07/23/2026, 01:18:05 UTC
Last enriched: 07/30/2026, 15:26:45 UTC
Last updated: 09/05/2026, 22:52:12 UTC
Views: 236
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.