
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-64649 is a Server-Side Request Forgery (SSRF) vulnerability in Next.js Server Actions on custom servers. When a Server Action forwards or redirects a request, an attacker who controls Host-associated headers can cause the server to send outbound requests to a malicious host. Affected versions are next (npm) >= 14.1.1 and < 15.5.21, and >= 16.0.0 and < 16.2.11. The vulnerability was published on July 21, 2026, and patched versions were released the same day. It carries a CVSS v4.0 base score of 8.3 (High) (GitHub Advisory).
The root cause is classified as CWE-918 (Server-Side Request Forgery). In the vulnerable code path within src/server/app-render/action-handler.ts, the origin used for forwarded Server Action requests and internal redirects was constructed using attacker-controllable Host or X-Forwarded-Host headers (e.g., ${proto}://${host.value}) rather than a trusted, server-side-determined value. The fix replaces this logic with origin derivation from the internal initURL request metadata, which is not attacker-controlled, or falls back to the __NEXT_PRIVATE_ORIGIN environment variable (GitHub Advisory, 15.x patch commit, 16.x patch commit). Exploitation requires the attacker to control the Host or X-Forwarded-Host header received by the application, which is possible on custom servers or deployments not behind a host-pinning proxy. In some configurations, exploitation can also leak internal values that weaken middleware or proxy authorization (GitHub Advisory).
A successful exploit allows an unauthenticated attacker to cause the Next.js server to issue arbitrary HTTP requests to attacker-controlled or internal hosts, enabling access to internal services, metadata endpoints (e.g., cloud IMDS), or other resources not intended to be publicly reachable. The primary impact is high confidentiality loss on the vulnerable system (e.g., exfiltration of internal data or credentials), with a low integrity impact due to potential unauthorized interactions with internal services. Availability is not directly impacted, but lateral movement within internal networks is a realistic secondary risk (GitHub Advisory).
next start, or standalone output from v14.2+) with versions >= 14.1.1 and < 15.5.21, or >= 16.0.0 and < 16.2.11, that uses Server Actions.Host or X-Forwarded-Host header without pinning it to a trusted value — this is typical when no reverse proxy enforces a fixed host.Host header (or X-Forwarded-Host) to an attacker-controlled hostname (e.g., attacker.example.com).https://attacker.example.com/... instead of the legitimate internal origin./_next/action or similar endpoints) with anomalous or external Host / X-Forwarded-Host header values.Could not determine origin for forwarded Server Actions request on unpatched versions, which may indicate probing activity.Upgrade Next.js to version 15.5.21 (for the 15.x branch) or 16.2.11 (for the 16.x branch), which fix the origin derivation logic to use server-side initURL metadata instead of attacker-controllable headers (v15.5.21 release, v16.2.11 release). If upgrading immediately is not possible, pin or validate the Host and X-Forwarded-Host headers at your edge or reverse proxy so clients cannot control the value received by the application. On Next.js 14.2.0 and later, you can also set the __NEXT_PRIVATE_ORIGIN environment variable to your deployment's real origin as an additional mitigation: __NEXT_PRIVATE_ORIGIN=https://www.example.com node server.js (GitHub Advisory). Applications on managed hosting (e.g., Vercel), or using next start / standalone output from v14.2+, are not affected as the host is pinned upstream.
The vulnerability was part of a broader Next.js July 2026 security release that addressed multiple high and moderate severity issues simultaneously, including other SSRF, DoS, and cache confusion vulnerabilities (v15.5.21 release, v16.2.11 release). Cloudflare's WAF and Netlify both published changelog entries acknowledging the Next.js security vulnerabilities around the same time as the advisory, indicating rapid response from major hosting and CDN providers. No significant independent researcher commentary or social media discussion specific to CVE-2026-64649 has been identified beyond the advisory itself.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."