Skip to main content

Next.js CVE-2026-44578

HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-11 https://github.com/vercel/next.js GHSA-c4j6-fc7j-m34r
8.6
CVSS 3.1 · Vendor: https://github.com/vercel/next.js
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted WebSocket upgrade request
  2. Delivery
    Bypass routing safety checks
  3. Exploit
    Server proxies connection to attacker-specified internal destination
  4. Execution
    Exfiltrate responses from internal services or cloud metadata
  5. Impact
    Obtain 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm next fix: 15.5.16, 16.2.5

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

Vendor (https://github.com/vercel/next.js) PRIMARY 8.6 HIGH
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Red Hat 8.6 HIGH

Primary rating from Vendor (https://github.com/vercel/next.js).

CVSS VectorVendor: https://github.com/vercel/next.js

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
4
Sightings
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA POC (1) Vendor CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

63
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Affected Products (CPE)CVE.org

pkg:npm/next
pkg:npm/next
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy