Skip to main content

Cesanta Mongoose EUVDEUVD-2026-131561

| CVE-2026-106024 MEDIUM
Improper Enforcement of Behavioral Workflow (CWE-841)
2026-11-20 VulnCheck
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Complete WebSocket handshake to server
  2. Exploit
    Send lone CONTINUATION frame FIN=1
  3. Impact
    Deliver 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Mongoose 0 <7.24

Affected Packages

euvd mongoose fix: 7.24

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

Vendor (VulnCheck) PRIMARY 6.9 MEDIUM
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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Medium
popular embedded/IoT web-server library, but only WebSocket-server deployments affected
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-23061 CRITICAL POC
9.0 Jan 15

Mongoose ODM for Node.js before version 8.9.5 contains a search injection vulnerability when using $where filters with p

CVE-2017-2894 CRITICAL POC
9.8 Nov 07

An exploitable stack buffer overflow vulnerability exists in the MQTT packet parsing functionality of Cesanta Mongoose 6

CVE-2017-2891 CRITICAL POC
9.8 Nov 07

An exploitable use-after-free vulnerability exists in the HTTP server implementation of Cesanta Mongoose 6.8. Rated crit

CVE-2017-2922 CRITICAL POC
9.8 Nov 07

An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Cesanta Mongoose 6.8.

CVE-2017-2921 CRITICAL POC
9.8 Nov 07

An exploitable memory corruption vulnerability exists in the Websocket protocol implementation of Cesanta Mongoose 6.8.

CVE-2023-3696 CRITICAL POC
9.8 Jul 17

Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.4. Rated critical severity (CVSS 9.8), this vu

CVE-2022-2564 CRITICAL POC
9.8 Jul 28

Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6. Rated critical severity (CVSS 9.8), this vu

CVE-2019-19307 CRITICAL POC
9.8 Nov 26

An integer overflow in parse_mqtt in mongoose.c in Cesanta Mongoose 6.16 allows an attacker to achieve remote DoS (infin

CVE-2024-53900 CRITICAL POC
9.1 Dec 02

Mongoose before 8.8.3 can improperly use $where in match, leading to search injection. Rated critical severity (CVSS 9.1

CVE-2021-26530 CRITICAL POC
9.1 Feb 08

The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 (compiled with OpenSSL support) is vulnerable to remote OO

CVE-2021-26529 CRITICAL POC
9.1 Feb 08

The mg_tls_init function in Cesanta Mongoose HTTPS server 7.0 and 6.7-6.18 (compiled with mbedTLS support) is vulnerable

CVE-2021-26528 CRITICAL POC
9.1 Feb 08

The mg_http_serve_file function in Cesanta Mongoose HTTP server 7.0 is vulnerable to remote OOB write attack via connect

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy