Impact
This flaw causes undici’s WebSocket client to crash the entire Node.js process during the opening handshake when the server sends a Sec-WebSocket-Protocol header that the client never requested. The crash results from dereferencing a null value while comparing the received subprotocol against the requested list, raising an uncaught TypeError that propagates out of a microtask, causing the default Node.js termination behavior. The weakness is classified under CWE‑248, CWE‑252, and CWE‑476, reflecting failure to check error values and dereference a null pointer.
Affected Systems
Affected products are the undici packages used by Node.js developers. Vulnerable releases span versions 6.7.0 through 6.28.1, 7.0.0 through 7.29.1, and 8.0.0 through 8.10.2.
Risk and Exploitability
The CVSS score of 7.5 indicates a high‑severity impact. Exploitation requires an attacker-controlled or compromised WebSocket server, or access to a plaintext connection susceptible to a man‑in‑the‑middle. No authentication is needed; simply forcing the server to reply with an unexpected subprotocol header will trigger the crash. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Because the failure occurs during handshake and terminates the process, the impact is immediate and catastrophic for services running the vulnerable client.
OpenCVE Enrichment