CVE-2026-93673
Last modified
CVE-2026-93673 is a medium-severity vulnerability rated 4.8/10 on the CVSS scale. The Zephyr WebSocket client validates the server's handshake response in on_header_value() 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)).
Description
The Zephyr WebSocket client validates the server's handshake response in on_header_value() 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->sec_accept_ok with no comparison performed at all. The header-value callback also cleared ctx->sec_accept_present after the first chunk, so a value split across receive-buffer boundaries was only ever examined in part. ctx->sec_accept_ok is the sole WebSocket-specific gate in websocket_connect(); 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. The affected path is driven directly by remote input through subsys/net/lib/http/http_parser.c, and is reached by every user of websocket_connect(), including MQTT over WebSocket (subsys/net/lib/mqtt/mqtt_transport_websocket.c) and subsys/net/lib/ocpp/ocpp.c. The Sec-WebSocket-Accept exchange is not a secret-based authentication -- an endpoint or on-path attacker that sees the request can compute the expected value -- so the impact is bounded to parties that never observed the handshake request: a caching or transparent intermediary replaying a canned response, an off-path attacker injecting a spoofed response, or a non-WebSocket endpoint the client was induced to talk to. For those, the per-connection binding that RFC 6455 requires the client to enforce provided no protection at all, letting a single crafted response convince the device it holds a live WebSocket session and causing it to send application data to, and accept frames from, an unverified peer. There is no memory-safety consequence. The fix compares each delivered chunk against the expected value at the position reached so far, refuses a chunk that would overrun it, and accepts only once every byte of the expected value -- and no more -- has been matched; on_header_field() now also clears the flag for any other header so a partial value cannot be continued across an intervening header.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| zephyrproject | zephyr | >= 2.1.0, < 4.3.2; >= 4.4.0, < 4.5.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-93673?
How severe is CVE-2026-93673?
How do I fix CVE-2026-93673?
How Strix Helps
- Same Subject, Wrong User: A Cross-Issuer Account Takeover in n8nStrix found an identity-binding bug in n8n's token-exchange flow enabling account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-93668The Bluetooth Classic SDP server in subsys/bluetooth/host/cl…6.5
- CVE-2026-93669The ITE IT8xxx2 SHI host-command backend in subsys/mgmt/ec_h…4.7
- CVE-2026-9367A vulnerability was determined in NousResearch hermes-agent …7.3
- CVE-2026-93670The Synopsys DesignWare I3C controller driver (drivers/i3c/i…3.5
- CVE-2026-93671The websocket client's HTTP header callback on_header_value(…3.7
- CVE-2026-93672bt_att_find_req_by_user_data() in subsys/bluetooth/host/att.…5.3
- CVE-2026-93674IBM Langflow OSS 1.0.0 through 1.12.2 could allow a remote a…9.8
- CVE-2026-93675IBM Langflow OSS 1.0.0 through 1.12.2 could allow a remote a…9.8
- CVE-2026-93676xdg-dbus-proxy incorrectly filters D-Bus broadcast messages,…3.2
- CVE-2026-93677IBM Langflow OSS 1.0.0 through 1.12.2 could allow a remote a…6.5
- CVE-2026-93678IBM Langflow OSS 1.0.0 through 1.12.2 could allow a remote a…7.6
- CVE-2026-93679IBM Langflow OSS 1.0.0 through 1.12.2 could allow a remote a…4.3
Are you affected by CVE-2026-93673?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
