JLSEC-2026-2429: High severity julia/mongoose_jll vulnerability
Mongoose is an embedded web server and network library. Prior to 7.23, the built-in TCP/IP stack enabled by MGENABLETCPIP in src/netbuiltin.c does not reject a TCP option whose declared opts[1] length exceeds the remaining option bytes. In handleopt(), a NOP followed by a truncated MSS option causes opts[3] to be read outside the declared options area and used as the low byte of dmss. An unauthenticated remote peer can corrupt the per-connection MSS value so later mgsend() calls transmit truncated or zero-length application payloads while the TCP connection otherwise appears healthy. This issue is fixed in version 7.23.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/Mongoose_jllto a version that resolves this vulnerability.Fixed in 7.23.0+0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.23
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using Mongoose before 7.23 are affected only when the built-in TCP/IP stack is enabled with MG_ENABLE_TCPIP in src/net_builtin.c. The affected component is associated with julia/mongoose_jll in the provided software data.
What does an attacker need to exploit it?
An unauthenticated remote peer can exploit the issue over the network by sending crafted TCP options, including a NOP followed by a truncated MSS option. No privileges or user interaction are required.
What operational impact should operators expect?
The attacker can corrupt the MSS value for an individual TCP connection. Subsequent mg_send() calls on that connection may send truncated or zero-length application payloads even though the TCP connection appears healthy.
How can this be remediated?
Update to Mongoose version 7.23, which fixes the option-length validation issue.