websocket-driver draft75/draft76 Parsing Bug Enables Remote DoS via Single Crafted Frame
What Happened
A GitHub Security Advisory (GHSA-v36f-rjg3-3v46, tracked as CVE-2026-140004) discloses a parsing flaw in the npm package websocket-driver. It affects the handling of the legacy pre-RFC WebSocket protocols draft75 and draft76. According to the advisory, an unauthenticated remote client can send a short, specific sequence of bytes after completing a draft75/draft76-style handshake to trigger incorrect frame parsing. Depending on the exact bytes sent, this can cause the server to duplicate a received message or crash. The advisory includes a working proof-of-concept. A single 3-byte frame (80 01 ff) sent after the handshake is reported to crash the server, with no authentication or special timing required. CVSS is listed at 9.1 and exploit status is public PoC.
Why It Matters
Any Node.js service that uses websocket-driver to terminate WebSocket connections and still accepts the legacy draft75/draft76 handshake is exposed to a pre-auth denial-of-service condition. A single malformed frame from any client that can reach the WebSocket endpoint can crash the process. Message duplication matters beyond availability. Duplicated message delivery could cause downstream logic errors, such as duplicate processing or duplicate state transitions, in applications that assume at-most-once delivery per client send. The maintainers' fix disables draft protocol support by default, so the safe posture requires either patching or confirming that legacy drafts are not needed.
What Defenders Should Do Now
- Identify services depending on
websocket-driver(directly or transitively) and check the installed version against the patched release referenced in the advisory. - Upgrade affected packages. The advisory notes that after patching, draft75/draft76 support is off by default and must be explicitly re-enabled via
allowDrafts: true. Avoid re-enabling it unless a legacy client genuinely requires it. - If immediate patching is not possible, consider network-level controls (WAF or proxy rules) to drop WebSocket upgrade requests that negotiate draft75/draft76-style handshakes rather than the standard RFC6455 handshake, since modern clients should not use these drafts.
- For hunting, review process-crash and restart telemetry and WebSocket connection logs for unusual short-lived connections immediately preceding service restarts on WebSocket-fronting hosts. Look for duplicate application-level message events correlated with a single client send.
- Monitor application logs for repeated or duplicate message handling that has no corresponding duplicate client transmission, as this may indicate exploitation attempts rather than a crash.
Developing Intel
This is a newly published advisory and df00tech has not independently verified exploitation in the wild. Treat the above as guidance based on the vendor's own disclosure, which should be read in full before taking remediation action. Original source: GHSA-v36f-rjg3-3v46.