CVE-2026-44578

Next.js: Server-side request forgery in applications using WebSocket upgrades

Published May 13, 2026 CVSS 3.1 · 8.6 High EPSS 1.9% KEV · Not listed
Description
Next.js is a React framework for building full-stack web applications. From 13.4.13 to before 15.5.16 and 16.2.5, 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. This vulnerability is fixed in 15.5.16 and 16.2.5.

Analysis

AI-generated

Technical impact

Next.js applications that use the built‑in Node.js server are vulnerable when a malicious actor sends a specially crafted WebSocket upgrade request. The server, following the upgrade, forwards the request to the target host without proper validation, effectively acting as a proxy. This server‑side request forgery flaw (CWE‑918) can expose internal services or cloud metadata endpoints, enabling data leakage or further lateral movement.

Affected Systems

The issue affects self‑hosted Next.js versions ranging from 13.4.13 up to (but excluding) 15.5.16 and 16.2.5. Deployments hosted on Vercel are not affected. The vulnerability is mitigated in 15.5.16 and 16.2.5 and later releases.

Risk and Exploitability

The CVSS score of 8.6 indicates a high severity. The EPSS score of 2% indicates a low probability of exploitation. The vulnerability has not been listed in the CISA KEV catalog. An attacker can exploit the flaw by sending a crafted WebSocket upgrade request to the application, causing the server to proxy traffic to arbitrary internal or external destinations. No data indicates exploitation of remote code execution. However, based on the description, it is inferred that SSRF could lead to data exfiltration or access to privileged cloud metadata.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Next.js to version 15.5.16 or 16.2.5 (or later) to apply the vendor patch.
  • If an upgrade is delayed, disable or tightly restrict WebSocket upgrade handling in the application configuration, ensuring only trusted origins can initiate upgrades.
  • Continuously monitor WebSocket upgrade traffic for anomalous requests and verify that no internal or metadata endpoints are being accessed from the server.

Generated by OpenCVE AI on November 26, 2026 at 06:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-c4j6-fc7j-m34r Next.js vulnerable to server-side request forgery in applications using WebSocket upgrades
History
Type Values Removed Values Added
CPEs cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*
Type Values Removed Values Added
First Time appeared Vercel
Vercel next.js
Vendors & Products Vercel
Vercel next.js
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Next.js is a React framework for building full-stack web applications. From 13.4.13 to before 15.5.16 and 16.2.5, 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. This vulnerability is fixed in 15.5.16 and 16.2.5.
Title Next.js: Server-side request forgery in applications using WebSocket upgrades
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N'}

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 13, 2026, 12:04 PM
Reserved
May 6, 2026, 9:49 PM
Status
Modified
Published
May 13, 2026, 6:16 PM
Modified
Oct 26, 2026, 2:10 PM
Severity
Important
Public date
May 13, 2026, 5:01 PM