Next.js CVE-2026-44578
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted WebSocket upgrade request
-
DeliveryBypass routing safety checks
-
ExploitServer proxies connection to attacker-specified internal destination
-
ExecutionExfiltrate responses from internal services or cloud metadata
-
ImpactObtain credentials or sensitive internal data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Self-hosted deployment using Next.js built-in Node.js server (typically via 'next start' command or custom Node.js server wrapper) is the primary prerequisite. Vercel-hosted deployments are explicitly excluded from vulnerability. The Next.js server must be network-accessible to the attacker (AV:N) and have outbound network egress capability to reach target internal services or metadata endpoints. Versions must be in vulnerable ranges: 13.4.13 through 15.5.15 or 16.0.0 through 16.2.4. The application does not need to implement WebSocket functionality-the vulnerability exists in the framework's upgrade request handling regardless of whether the application uses WebSockets. No authentication (PR:N), user interaction (UI:N), or special application configuration is required. Organizations that already block WebSocket upgrades at the reverse proxy layer or implement strict egress filtering to prevent access to private networks and metadata endpoints are not exploitable despite running vulnerable versions. |
| Impact | This represents a high-priority vulnerability requiring immediate attention for self-hosted Next.js deployments. The CVSS score of 8.6 reflects critical factors: network-based attack vector (AV:N), low attack complexity (AC:L), no authentication required (PR:N), no user interaction needed (UI:N), and scope change (S:C) with high confidentiality impact (C:H). The scope change is particularly significant as it enables attackers to pivot from the Next.js server to access separate internal systems and cloud metadata services. While no EPSS or KEV data is provided, the severity is confirmed by Vercel's classification as 'High' severity in their security advisory GHSA-c4j6-fc7j-m34r. The real-world risk is substantial for self-hosted environments where Next.js servers have egress access to internal networks or cloud metadata endpoints-a common configuration in containerized deployments (ECS, GKE, AKS) where instance metadata provides IAM credentials. The availability of patches in versions 15.5.16 and 16.2.5 makes this immediately remediable. Risk is lower for organizations using Vercel's hosted platform (explicitly excluded) or those with strict egress filtering. The vulnerability's impact is limited to confidentiality (C:H) with no integrity or availability impact, meaning attackers can read data but not modify systems through this vector alone. |
| Exploit ScenarioDerived | An attacker crafts a malicious WebSocket upgrade request to a self-hosted Next.js application, manipulating the upgrade headers to specify an internal target such as http://169.254.169.254/latest/meta-data/iam/security-credentials/ (AWS instance metadata endpoint). The vulnerable Next.js server processes the upgrade request without proper validation, establishes a connection to the metadata endpoint, and returns the IAM credentials to the attacker. The attacker now possesses temporary AWS credentials with the permissions of the instance role, potentially enabling further cloud infrastructure compromise. Alternatively, the attacker could target internal services like http://internal-admin-panel:8080 or database management interfaces on private networks, exfiltrating sensitive configuration data or internal API responses. The attack requires only network access to the Next.js server and knowledge of internal network topology or cloud metadata endpoint URLs-no authentication or user interaction required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
Server-side request forgery in Next.js allows remote unauthenticated attackers to proxy requests to arbitrary internal or external destinations through crafted WebSocket upgrade requests in self-hosted applications using the built-in Node.js server. Attackers can access internal services and cloud metadata endpoints (AWS, GCP, Azure instance metadata) without authentication. This affects Next.js versions 13.4.13 through 15.5.15 and 16.0.0 through 16.2.4. Vendor-released patches available in versions 15.5.16 and 16.2.5. Vercel-hosted deployments are explicitly not affected.
RemediationAI
Upgrade Next.js to version 15.5.16 (for 15.x branch) or 16.2.5 (for 16.x branch) immediately. These versions apply the same routing safety checks to WebSocket upgrade handling that already existed for HTTP requests, ensuring upgrades are only proxied when explicitly marked as safe external rewrites. Release notes: https://github.com/vercel/next.js/releases/tag/v15.5.16 and https://github.com/vercel/next.js/releases/tag/v16.2.5. If immediate upgrade is not possible, implement these compensating controls with their associated trade-offs: (1) Do not expose the Next.js origin server directly to untrusted networks-place behind a hardened reverse proxy, though this adds infrastructure complexity and potential performance overhead. (2) Block WebSocket upgrade requests at your reverse proxy or load balancer level (check for 'Upgrade: websocket' header), but this breaks legitimate WebSocket functionality if your application requires it for real-time features. (3) Implement strict egress filtering on the Next.js server to allow outbound connections only to explicitly required external services, blocking access to RFC1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and cloud metadata endpoints (169.254.169.254/32, metadata.google.internal), though overly restrictive rules may break legitimate internal service communication. Test egress rules thoroughly in staging before production deployment.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Next.js is a React-based web framework with server-side rendering capabilities. When self-hosted with the built-in Node.js server, Next.js handles WebSocket upgrade requests (HTTP/1.1 Upgrade header) to establish persistent bidirectional connections. The vulnerability stems from CWE-918 (Server-Side Request Forgery) in the WebSocket upgrade handling code. Unlike normal HTTP requests which underwent safety checks for routing and rewrite validation, WebSocket upgrade requests bypassed these controls, allowing attackers to manipulate the Upgrade handshake to force the server to initiate connections to attacker-specified destinations. This creates a proxy scenario where the Next.js server becomes an unwitting intermediary to internal resources (private network services, databases) or cloud metadata endpoints (169.254.169.254 on AWS/Azure, metadata.google.internal on GCP). The scope change (S:C) in CVSS indicates the vulnerability allows impacts beyond the vulnerable component's security scope, enabling cross-boundary attacks into otherwise isolated network segments.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Primary rating from Vendor (https://github.com/vercel/next.js).
CVSS VectorVendor: https://github.com/vercel/next.js
DescriptionCVE.org
Impact
Self-hosted applications using the built-in Node.js server can be vulnerable to server-side request forgery through crafted WebSocket upgrade requests. An attacker can cause the server to proxy requests to arbitrary internal or external destinations, which may expose internal services or cloud metadata endpoints. Vercel-hosted deployments are not affected.
Fix
We now apply the same safety checks to WebSocket upgrade handling that already existed for normal HTTP requests, so upgrade requests are only proxied when routing has explicitly marked them as safe external rewrites.
Workarounds
If you cannot upgrade immediately, do not expose the origin server directly to untrusted networks. If WebSocket upgrades are not required, block them at your reverse proxy or load balancer, and restrict origin egress to internal networks and metadata services where possible.
Executive ViewAI
Next.js self-hosted deployments are vulnerable to unauthenticated server-side request forgery through WebSocket upgrade requests, allowing attackers to access internal services and cloud metadata endpoints without authentication. Organizations running affected versions (13.4.13-15.5.15 or 16.0.0-16.2.4) on self-managed infrastructure face immediate risk of credential exposure and lateral movement to cloud environments and internal systems. Vercel-hosted deployments are not affected.
Vendor-released patch: Next.js 15.5.16 or 16.2.5. If immediate patching is not feasible, restrict network access to WebSocket upgrade endpoints and disable the built-in Node.js server in favor of a reverse proxy (nginx, HAProxy) with strict request validation; implement IAM policies to limit metadata endpoint access from application instances.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Affected Products (CPE)CVE.org
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
GHSA-c4j6-fc7j-m34r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB