WebSocket frame validation bypass in Mongoose
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Mongoose before 7.24, an embedded web server and networking library from Cesanta, mishandles WebSocket fragmentation. A remote attacker can send a single CONTINUATION frame with FIN set as the first data frame, which violates RFC 6455 sequencing rules. The malformed frame makes mg_ws_cb() in src/ws.c treat the first payload byte as saved flags, so the application receives an MG_EV_WS_MSG event with attacker-controlled flags and data truncated by one byte. A public exploit proof of concept is linked in the references.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
Mongoose Embedded Web Server / Networking Library before 7.24 contains a WebSocket fragmentation validation vulnerability that allows remote attackers to spoof message metadata by sending a single CONTINUATION frame with FIN=1 as the first data frame instead of a required TEXT/BINARY start frame, violating RFC 6455 sequencing rules. Attackers can craft this malformed frame to make mg_ws_cb() in src/ws.c misinterpret the first byte of payload as saved FIN/opcode flags, causing the application to receive a dispatched MG_EV_WS_MSG event with attacker-controlled flags and data truncated by one byte without closing the connection.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade cesanta mongoose to version 7.24 or later, which fixes the flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
- Fix · CNA mongoose (cesanta) Fixed in 7.24
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
cesanta mongoose 7.24
3 records Highest priority Priority HIGH 3 HIGH
Other records, highest priority first
- TI-2026-96094 Out-of-bounds read in Cesanta Mongoose IPv6 checksum validationPriority HIGH 70
- TI-2026-96093 Out-of-bounds read in Cesanta Mongoose certificate time parsingPriority HIGH 69
Timeline
- 2026-11-20 Threatist record created from CVE-2026-106024
- 2026-11-25 CISA SSVC decision points changed
References
Exploit 1
Patch 1
More Cesanta vulnerabilities
- TI-2023-23198 Cesanta mjs v2.20.0 was discovered to contain a function pointer hijacking vulnerability… CVSS 3.1CRITICAL 9.8
- TI-2026-51393 Mongoose: Content-Length + Transfer-Encoding coexistence enables request smuggling CVSS 3.1CRITICAL 9.1
- TI-2018-15418 Mongoose Web Server 6.9 Denial of Service via Socket Connection CVSS 4.0HIGH 8.7
- TI-2026-51389 Mongoose: TLS Hostname Verification Bypass via Overly Permissive Wildcard Matching CVSS 4.0CRITICAL 9.1
- TI-2023-02723 Cesanta Mongoose MQTT Message Parsing Heap Overflow CVSS 3.1HIGH 8.8
- TI-2020-15865 Buffer overflow in mg_resolve_from_hosts_file in Mongoose 6.18, when reading from a crafted hosts file. CVSS 3.1HIGH 8.8
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences