CVE-2026-64649: 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 14.1.1 through 15.5.20 and 16.0.0 through 16.2.10, when a Server Action forwards or redirects a request, an attacker can cause the server to send that outbound request to a malicious host (Server-Side Request Forgery). This requires the attacker's request to control Host-associated headers. In some configurations, it's also possible to obtain internal values that weaken middleware/proxy authorization. Applications that use Server Actions are affected when the incoming host header is not fixed to a trusted value. This typically occurs on custom servers, or on deployments not behind a proxy that pins the host. Managed hosting pins the host upstream and is not affected; next start and standalone output do the same from version 14.2 onward. This issue has been fixed in versions 15.5.21 and 16.2.11.
AI Analysis
Technical Summary
Next.js, a React framework for full-stack web applications, has an SSRF vulnerability (CWE-918) in versions >=14.1.1 <15.5.21 and >=16.0.0 <16.2.11. The flaw arises when Server Actions forward or redirect requests and the attacker can manipulate Host-associated headers, causing the server to send outbound requests to attacker-controlled hosts. This can also expose internal values weakening middleware or proxy authorization in some configurations. The vulnerability requires that the incoming host header is not fixed to a trusted value, which is common in custom servers or deployments without upstream host pinning. Managed hosting environments and next start/standalone output from version 14.2 onward mitigate this risk by pinning the host upstream. The vulnerability has been addressed in versions 15.5.21 and 16.2.11.
Potential Impact
An attacker able to control Host headers in affected Next.js versions can exploit SSRF to make the server send requests to arbitrary malicious hosts. This may lead to unauthorized internal resource access or bypass of middleware/proxy authorization in some setups. The vulnerability does not require privileges or user interaction but depends on the server configuration regarding host header validation.
Mitigation Recommendations
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 SSRF vulnerability is fixed. For deployments using custom servers or without upstream host pinning, ensure that the incoming host header is validated and fixed to a trusted value. Managed hosting environments and next start/standalone output from version 14.2 onward already mitigate this issue by pinning the host upstream.
CVE-2026-64649: 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 14.1.1 through 15.5.20 and 16.0.0 through 16.2.10, when a Server Action forwards or redirects a request, an attacker can cause the server to send that outbound request to a malicious host (Server-Side Request Forgery). This requires the attacker's request to control Host-associated headers. In some configurations, it's also possible to obtain internal values that weaken middleware/proxy authorization. Applications that use Server Actions are affected when the incoming host header is not fixed to a trusted value. This typically occurs on custom servers, or on deployments not behind a proxy that pins the host. Managed hosting pins the host upstream and is not affected; next start and standalone output do the same from version 14.2 onward. 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.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Next.js, a React framework for full-stack web applications, has an SSRF vulnerability (CWE-918) in versions >=14.1.1 <15.5.21 and >=16.0.0 <16.2.11. The flaw arises when Server Actions forward or redirect requests and the attacker can manipulate Host-associated headers, causing the server to send outbound requests to attacker-controlled hosts. This can also expose internal values weakening middleware or proxy authorization in some configurations. The vulnerability requires that the incoming host header is not fixed to a trusted value, which is common in custom servers or deployments without upstream host pinning. Managed hosting environments and next start/standalone output from version 14.2 onward mitigate this risk by pinning the host upstream. The vulnerability has been addressed in versions 15.5.21 and 16.2.11.
Potential Impact
An attacker able to control Host headers in affected Next.js versions can exploit SSRF to make the server send requests to arbitrary malicious hosts. This may lead to unauthorized internal resource access or bypass of middleware/proxy authorization in some setups. The vulnerability does not require privileges or user interaction but depends on the server configuration regarding host header validation.
Mitigation Recommendations
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 SSRF vulnerability is fixed. For deployments using custom servers or without upstream host pinning, ensure that the incoming host header is validated and fixed to a trusted value. Managed hosting environments and next start/standalone output from version 14.2 onward already mitigate this issue by pinning the host upstream.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-89xv-2m56-2m9x
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64649"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a616bcd9c2644c7f80dbd81
Added to database: 07/23/2026, 01:18:05 UTC
Last enriched: 07/30/2026, 15:28:02 UTC
Last updated: 09/05/2026, 22:52:12 UTC
Views: 271
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.