Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessComplete WebSocket handshake to server
-
ExploitSend lone CONTINUATION frame FIN=1
-
ImpactDeliver MG_EV_WS_MSG with spoofed flags, truncated data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Workflow enforcement
|
| Exploitation Conditions | Requires that the target application runs a Mongoose WebSocket server endpoint and that an attacker can complete a normal WS handshake (no authentication is required per PR:N). The core condition for meaningful impact is that the application branches on or trusts mg_ws_message.flags as metadata (e.g., to distinguish message types) - such applications can be misled per message; applications that ignore flags still suffer the one-byte payload truncation on every message reassembled through this path. Limiting factors: the product must actually expose a WebSocket server (not merely link Mongoose), affected versions are before 7.24 (specifically v7.23 and earlier per the advisory), and the impact is confined to the WebSocket layer of that single connection with no memory corruption, code execution, or cross-connection effect. |
| Impact | The input assigns a CVSS 4.0 score of 6.9 (Medium) with vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N, meaning remote, low-complexity, unauthenticated exploitation with no user interaction, but only Low confidentiality and Low integrity impact to the vulnerable system and no subsequent-system (scope) impact. This is not a KEV-listed vulnerability (CISA KEV status not present in the input) and no EPSS score was provided, so there is no data point indicating widespread or automated exploitation - the vuln.today Decision label is 'this_month', a routine-prioritization signal rather than act_now/emergency. A public PoC reference exists in the GHSA advisory (reproduction steps), but it is not verified as working exploit code, and PoC availability must not be conflated with active exploitation. The GHSA advisory explicitly bounds the technical impact: no memory corruption, no RCE, no crash - the effect is confined to WebSocket message-metadata integrity (attacker-controlled m.flags) and a one-byte truncation of message content on the affected connection. Net assessment: a legitimate, easy-to-reach bug that is worth patching on a normal cycle, but it is a Medium-severity integrity/metadata issue rather than a high-real-risk emergency; the 'Information Disclosure' tag overstates the effect, which the advisory describes primarily as metadata-integrity corruption. Missing signals: no EPSS and no KEV data were supplied, so real-world exploitation probability cannot be quantified from the input. |
| Exploit ScenarioDerived | An unauthenticated attacker who can reach a Mongoose-based WebSocket endpoint completes a normal WS handshake, then sends a single malformed frame (wire byte 0x80: FIN=1, opcode=0/CONTINUATION) as the first data frame with a masked payload. The server's mg_ws_cb() misinterprets byte 0 of the payload as saved FIN/opcode flags and dispatches MG_EV_WS_MSG with fully attacker-controlled flags and a payload truncated by one byte, without closing the connection. The GHSA advisory provides a PoC reproduction sequence, though it is not verified as working exploit code; the low-complexity, no-UI, unauthenticated vector makes the frame trivial to craft. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Improper WebSocket frame-sequencing validation in Cesanta Mongoose before 7.24 allows a remote, unauthenticated peer that can complete a normal WebSocket handshake to send a lone CONTINUATION frame with FIN=1 as the very first data frame and have it accepted as if it were the tail of a genuine fragmented message. The result is a dispatched MG_EV_WS_MSG event in which the application receives attacker-chosen flags (taken from byte 0 of the payload) and message data truncated by one byte, without the connection being closed. Impact is limited to WebSocket message metadata integrity and content correctness on that single connection - no memory corruption, code execution, or cross-connection effect - and is most meaningful for applications that branch on or trust mg_ws_message.flags as trusted metadata (CVSS 4.0 score 6.9, Medium per the input; assessed as Low confidentiality and Low integrity). A public PoC reference exists (the GHSA description includes reproduction steps against v7.23); it is not verified as working exploit code, and no confirmed active exploitation (CISA KEV) is reported.
RemediationAI
Vendor-released patch: upgrade to Mongoose 7.24, which the release notes credit with 'WebSocket continuation-frame sequencing validation' alongside a batch of other hardening fixes (HTTP header-table bounds and URL decoding, TLS record/certificate validation, built-in TCP/IP fragment handling, WebSocket client-frame masking) - since those ship in the same release, moving to 7.24 closes this issue and several related ones at once, and because it is a library change it requires rebuilding and reflashing/redistributing the affected firmware or application. Confirm the fixed build with the advisory (https://github.com/cesanta/mongoose/security/advisories/GHSA-8r69-8vm6-fv67) and release notes (https://github.com/cesanta/mongoose/releases/tag/7.24); if the library was vendored or pinned in a fork, apply the sequencing fix in src/ws.c described by the advisory - track fragmentation state with an explicit 'start frame received' flag instead of relying on ofs > 0, and close the connection when a CONTINUATION frame arrives with no open TEXT/BINARY message. For deployments that cannot rebuild immediately, note that no configuration switch removes this behavior; the practical compensating controls are to treat mg_ws_message.flags as untrusted in every MG_EV_WS_MSG handler (rejecting or re-deriving message type rather than branching on flags) - which addresses the metadata-spoofing half but not the one-byte payload truncation - and to restrict the WebSocket endpoint to trusted networks or place authentication in front of it, at the cost of narrowing legitimate client access and not fixing the underlying library defect.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mongoose is a small embedded HTTP/WebSocket/networking library used in firmware and IoT products; its WebSocket server logic lives in src/ws.c, in the mg_ws_cb() receive callback. Per RFC 6455 Section 5.4, a fragmented message must begin with a TEXT or BINARY frame (opcode 1 or 2, FIN=0), be followed by zero or more CONTINUATION frames (opcode 0), and end with a CONTINUATION frame carrying FIN=1; a CONTINUATION frame arriving with no open message is a protocol violation that must fail the connection. The advisory (GHSA-8r69-8vm6-fv67) shows Mongoose tracks reassembly state with only a single offset (c->pfn_data/ofs) plus an ofs > 0 test, with no explicit flag recording that a TEXT/BINARY start frame has been seen. A lone CONTINUATION frame with FIN=1 (wire byte 0x80) as the first data frame therefore sets ofs to its own payload length, which is indistinguishable from the state of a real in-progress fragmented message; the trailing final && !op && (ofs > 0) branch then reads c->recv.buf[0] into m.flags and delivers c->recv.buf[1..ofs-1] as m.data. The root cause maps to CWE-841 (Improper Enforcement of Behavioral Workflow): a state-machine transition is never validated, so the sequencing check that should terminate the connection is simply absent. The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N indicates remote, low-complexity, unauthenticated exploitation with no user interaction, with only Low confidentiality and integrity impact and no scope change; the assessed CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) is consistent with that reading. The trigger is described precisely in the advisory (a single malformed frame on an established WebSocket connection); no race, heap grooming, or timing condition is involved, and the flaw is confined to the WebSocket layer of the affected connection.
Know when Mongoose gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Remote, single unauthenticated frame with no user interaction (AV:N/AC:L/PR:N/UI:N); low confidentiality from one-byte truncation and low integrity from attacker-controlled flags, no availability or scope impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Mongoose ODM for Node.js before version 8.9.5 contains a search injection vulnerability when using $where filters with p
An exploitable stack buffer overflow vulnerability exists in the MQTT packet parsing functionality of Cesanta Mongoose 6
An exploitable use-after-free vulnerability exists in the HTTP server implementation of Cesanta Mongoose 6.8. Rated crit
An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Cesanta Mongoose 6.8.
An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Cesanta Mongoose 6.8.
Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.4. Rated critical severity (CVSS 9.8), this vu
Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6. Rated critical severity (CVSS 9.8), this vu
An integer overflow in parse_mqtt in mongoose.c in Cesanta Mongoose 6.16 allows an attacker to achieve remote DoS (infin
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection. Rated critical severity (CVSS 9.1
The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 (compiled with OpenSSL support) is vulnerable to remote OO
The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 and 6.7-6.18 (compiled with mbedTLS support) is vulnerable
The mg_http_serve_file function in Cesanta Mongoose HTTP server 7.0 is vulnerable to remote OOB write attack via connect
EUVD-2026-131561
NVD
CVE.org
EPSS
GitHub
Exploit-DB