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 4% suggests a moderate 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, but SSRF could lead to data exfiltration or access to privileged cloud metadata.
OpenCVE Enrichment
Github GHSA