This CVE is mislabeled as a null dereference when the actual vulnerability is an absent error-handling boundary that converts a protocol violation into process termination. The subprotocol validation runs inside a microtask with no surrounding try/catch, so when a server responds with a subprotocol the client never offered, the resulting TypeError becomes an unhandled promise rejection that Node.js escalates to an uncaught exception and crashes the process. Protocol violations should close the connection cleanly — not kill the process.
The attack surface extends beyond the typical attacker-controlled-server scenario. In containerized service meshes using WebSockets for inter-service communication, compromising one service gives attackers a reliable mechanism to crash dependent services remotely, without authentication, over any plaintext connection where they can inject an HTTP response. This inverts the reliability guarantee that orchestration systems like Kubernetes depend on, creating lateral movement and denial-of-service primitives that the CVSS 7.5 score understates.
The fix requires more than a null guard — it requires wrapping the entire microtask context in error handling, which indicates the boundary gap was wider than a single edge case. This is the third similar flaw in WebSocket libraries in two years, pointing to a systemic pattern rather than isolated negligence. Examine undici's other WebSocket code paths — the upgrade handler, frame processing, and extension negotiation — for the same validation-without-boundary pattern. The 'official' Node.js client positioning creates a false maturity assumption; the WebSocket path is the least battle-tested part of the library. Assume other gaps exist until proven otherwise, and prioritize auditing these paths before adversarial traffic surfaces them.