Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Next.js: Server-Side Request Forgery in Server Actions on custom servers (CVE-2026-64649)

0
High
Published: 07/22/2026 (07/22/2026, 23:09:48 UTC)
Source: GCVE Database
Product: next

Description

Next.js versions 14.1.1 up to but not including 15.5.21, and 16.0.0 up to but not including 16.2.11, are affected by a Server-Side Request Forgery (SSRF) vulnerability in Server Actions on custom server setups. This vulnerability allows an attacker to manipulate Host-related headers to cause the server to send outbound requests to malicious hosts. The issue primarily affects deployments where the incoming Host header is not pinned or validated, such as custom servers or deployments not behind a proxy that enforces host validation. Managed hosting and standard Next.js start commands from version 14.2 onward mitigate this risk by pinning the host. Workarounds include validating or pinning Host and X-Forwarded-Host headers at the edge or proxy and setting the __NEXT_PRIVATE_ORIGIN environment variable to the real origin in version 14.2.0 and later.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

npmghsa
next
Affected versions
>=14.1.1 <15.5.21
npmghsa
next
Affected versions
>=16.0.0 <16.2.11

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

AILast updated: 07/23/2026, 01:22:39 UTC

Technical Analysis

This vulnerability (CVE-2026-64649) in Next.js Server Actions allows attackers to perform Server-Side Request Forgery (SSRF) by controlling Host-associated headers in requests forwarded or redirected by the server. The flaw arises when the application does not fix the incoming Host header to a trusted value, which is common in custom server configurations or deployments lacking a proxy that pins the host. Managed hosting environments and Next.js versions 14.2.0 and later running with 'next start' or standalone output are not affected due to host pinning. The vulnerability can also lead to exposure of internal values that weaken middleware or proxy authorization in some configurations. The affected versions are >=14.1.1 <15.5.21 and >=16.0.0 <16.2.11. No official patch link is provided, but upgrading to versions 14.2.0 or later with proper host pinning or applying the recommended environment variable mitigations is advised.

Potential Impact

An attacker who can control Host-related headers in requests to a vulnerable Next.js server can induce the server to send outbound requests to attacker-controlled or malicious hosts, resulting in Server-Side Request Forgery (SSRF). This can potentially expose internal network resources or bypass middleware/proxy authorization mechanisms in some configurations. The impact is high due to the ability to manipulate server-side requests and potentially access sensitive internal information or systems.

Mitigation Recommendations

Upgrade to Next.js version 14.2.0 or later, which includes host pinning when using 'next start' or standalone output. If upgrading is not immediately possible, ensure that clients cannot control the Host header by pinning or validating the 'Host' and 'X-Forwarded-Host' headers at the edge or proxy level. Additionally, for versions 14.2.0 and later, set the '__NEXT_PRIVATE_ORIGIN' environment variable to the deployment's real origin URL to enforce origin validation. These mitigations reduce the risk of SSRF by controlling the host headers and origin validation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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/23/2026, 01:22:39 UTC

Last updated: 07/23/2026, 03:44:42 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses