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

Published May 11, 2026
·
Updated

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.

Other sources

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.

MITRE

Affected Software

4 affected componentsFixes available
npm/next>=16.0.0<16.2.5
16.2.5
npm/next>=13.4.13<15.5.16
15.5.16
Vercel Next.js Node.js>=13.4.13<15.5.16
Vercel Next.js Node.js>=16.0.0<16.2.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/next to a version that resolves this vulnerability.

    Fixed in 16.2.5
  2. Upgrade

    Upgrade npm/next to a version that resolves this vulnerability.

    Fixed in 15.5.16
  3. Upgrade

    Upgrade Next.js to a version that resolves this vulnerability.

    Fixed in 15.5.16
  4. Upgrade

    Upgrade Next.js to a version that resolves this vulnerability.

    Fixed in 16.2.5
  5. Compensating control

    If WebSocket upgrades are not required, block WebSocket upgrade requests at your reverse proxy or load balancer, and restrict origin egress to internal networks and metadata services where possible.

  6. Compensating control

    If you cannot upgrade immediately, do not expose the origin server directly to untrusted networks.

Event History

May 11, 2026
Advisory Published
via GitHub·03:55 PM
Data Sourced
via GitHub·03:55 PM
DescriptionSeverityWeaknessAffected Software
May 13, 2026
CVE Published
via MITRE·05:01 PM
Data Sourced
via MITRE·05:01 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·06:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-44578?

CVE-2026-44578 is classified as a critical vulnerability due to its potential for server-side request forgery.

2

How do I fix CVE-2026-44578?

To fix CVE-2026-44578, upgrade to Next.js version 16.2.5 or 15.5.16.

3

Which versions of Next.js are affected by CVE-2026-44578?

Versions of Next.js from 13.4.13 to 15.5.16 and 16.0.0 to 16.2.5 are affected by CVE-2026-44578.

4

What type of attack is CVE-2026-44578 associated with?

CVE-2026-44578 is associated with a server-side request forgery (SSRF) vulnerability.

5

Which platform is affected by CVE-2026-44578?

CVE-2026-44578 affects self-hosted Next.js applications using the built-in Node.js server.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203