JLSEC-2026-2417: Medium severity julia/mongoose_jll vulnerability
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 mgwscb() in src/ws.c misinterpret the first byte of payload as saved FIN/opcode flags, causing the application to receive a dispatched MGEVWSMSG event with attacker-controlled flags and data truncated by one byte without closing the connection.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Mongoose Embedded Web Server / Networking Libraryto a version that resolves this vulnerability.Fixed in 7.24
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using Mongoose Embedded Web Server / Networking Library versions before 7.24 that accept WebSocket connections are exposed. The issue is remotely reachable and requires no authentication or user interaction.
What does an attacker need to send to trigger the flawed parsing?
The attacker sends a malformed WebSocket sequence consisting of a single CONTINUATION frame with FIN set to 1 as the first data frame, rather than beginning with a TEXT or BINARY frame. This violates RFC 6455 frame sequencing rules.
What is the application-level effect of successful exploitation?
The application can receive an MG_EV_WS_MSG event whose metadata flags are controlled by the attacker. The message data is also truncated by one byte, and the connection is not closed.
How can I determine whether an affected connection has been exploited?
Look for MG_EV_WS_MSG events produced after a WebSocket message begins with a CONTINUATION frame rather than a TEXT or BINARY frame. Affected handling may show attacker-influenced flags and payload data missing its first byte while the connection remains open.