CVE Feed
4.8 Medium

The Zephyr WebSocket client validates the server's handshake response in onheadervalue() in subsys/net/lib/websocket/websocket.c.

CVE-2026-93673

The Zephyr WebSocket client validates the server's handshake response in onheadervalue() in subsys/net/lib/websocket/websocket.c. The comparison was performed as strncmp(at, str, length), where length is the length of the value the server sent rather than the length of the expected value, so the check only asked whether the received value was a prefix of the expected base64(SHA-1(key || GUID)). A server that returned a handful of correct characters passed, and a response carrying an empty Sec-WebSocket-Accept: header caused strncmp() to be called with a count of zero, which returns 0 and set ctx->secacceptok with no comparison performed at all. The header-value callback also cleared ctx->secacceptpresent after the first chunk, so a value split across receive-buffer boundaries was only ever examined in part. ctx->secacceptok is the sole WebSocket-specific gate in websocketconnect(); the client does not check the HTTP status code or the Upgrade:/Connection: headers. Any HTTP response containing an empty or prefix-matching Sec-WebSocket-Accept header therefore completed the handshake, after which the socket is finalized as a WebSocket and all further peer bytes are parsed as frames.…

Assessment

CVSS
4.8 (v3.1)
Severity
Medium
Known exploited
Not listed in CISA KEV
Exploit availability
Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
Published
16 November 2026
Last updated
17 November 2026
Assigner
zephyr

CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

At the source

References

Community proofs of concept

No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.

Submit a proof of concept
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-93673