← All advisories
CVE-2026-44578highSSRF & network2026-05-11

CVE-2026-44578: Next.js vulnerable to server-side request forgery in applications using WebSocket upgrades

Self-hosted applications using the built-in Node.js server can be vulnerable to server-side request forgery through crafted WebSocket upgrade requests.

01.

What it is

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.

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.

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.

02.

How to check

  1. Affected: next (npm) >= 13.4.13, < 15.5.16.
  2. Affected: next (npm) >= 16.0.0, < 16.2.5.
  3. Compare your installed version with the range above (command below).
03.

How to fix

  1. Upgrade next to 15.5.16 or later.
  2. Upgrade next to 16.2.5 or later.
npm ls next
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

New advisories, CVEs and fixes for Lovable, Bolt, v0, Replit, Base44 and Cursor apps. No roundups of things you already read.