Read the docs

WebSocket frame validation bypass in Mongoose

Priority HIGH 70CWE-841Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00453 31st percentileScored 2026-11-30
Public exploit Yes 1 exploit referenceTagged by the CNA
Fix Fixed mongoose (cesanta): 7.24

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

VendorProductAffected versionsFixed inStatusSource
Cesantamongoosebefore 7.247.24Patch availableCNA
  • mongoose VendorCesanta Affected before 7.24 Fixed in 7.24 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:cesanta:mongoose:*:*:*:*:*:*:*:*——Cesanta
  • cpe:2.3:a:cesanta:mongoose:*:*:*:*:*:*:*:* Versions — — ·Cesanta

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

  1. 2026-11-20 Threatist record created from CVE-2026-106024
  2. 2026-11-25 CISA SSVC decision points changed

References

  • 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
See all 157 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences