CVE-2026-1528: Node.js undici denial of service via WebSocket length overflow

CVE-2026-1528 · Severity: high · CVSS 7.5 · Published 2026-03-12

Undici is a popular HTTP and WebSocket client for Node.js used to fetch data and maintain real-time connections. A vulnerability in its WebSocket implementation allows a malicious server to crash the client application by sending a specially crafted message with an extremely large length value. This results in a denial-of-service (DoS) condition, potentially disrupting services that rely on Undici for external communications.

Technologies: undici (npm). Vendors: npm.

Quick answers

Is CVE-2026-1528 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-1528 being exploited in the wild.
How severe is CVE-2026-1528?
High severity, with a CVSS score of 7.5, published 12 March 2026.
Which products and versions are affected?
undici (npm) SEMVER:introduced=6.0.0,fixed=6.24.0.
Is there a fix for CVE-2026-1528?
Yes. undici (npm): upgrade to 6.24.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-1528 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-1528?
Check whether you run undici (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • undici (npm): upgrade to 6.24.0 or later
    npm install undici@6.24.0

Technical details

A vulnerability exists in the Undici WebSocket client's ByteParser component. When a server responds with a WebSocket frame using the 64-bit length form containing an extremely large value, the internal mathematical operations in ByteParser overflow. This causes the parser to enter an invalid state and throw an uncaught TypeError. Because this exception is fatal, it terminates the Node.js process. The issue is classified under CWE-1284 (Improper Validation of Specified Quantity in Input) and CWE-248 (Uncaught Exception). It is fixed in versions 7.24.0 and 6.24.0.

Affected products

  • Node.js undici < 6.24.0, < 7.24.0

Identifiers

  • CVE-2026-1528
  • GHSA-f269-vfmq-vjvj

Timeline

  • 2026-03-12: disclosed
  • 2026-03-12: advisory
  • 2026-03-12: patched

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.