JLSEC-2026-2424: Medium severity julia/mongoose_jll vulnerability
Mongoose is an embedded web server and network library. In 7.23, Mongoose's mghttpparseheaders() in src/http.c can accept an HTTP/1 request after the fixed MGMAXHTTPHEADERS table is exhausted and silently omit later framing headers such as Content-Length or Transfer-Encoding. A conforming frontend can treat bytes as the first request body while Mongoose treats the request as bodyless and parses those bytes as a second request, enabling request smuggling and bypass of a frontend path ACL when the frontend preserves the late framing header. Earlier releases may also be affected, but their status has not been established. This issue is fixed in 7.24.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.24
Event History
Frequently Asked Questions
Which deployments are realistically exposed to request smuggling?
Deployments are exposed when Mongoose handles HTTP/1 requests behind a conforming frontend that preserves a framing header placed after Mongoose's fixed header-table limit. The impact described includes bypassing frontend path ACLs when the frontend and Mongoose disagree about whether the request has a body.
What does an attacker need to do to exploit this?
An unauthenticated attacker must be able to send a crafted HTTP/1 request with enough headers to exhaust MG_MAX_HTTP_HEADERS, placing Content-Length or Transfer-Encoding after that limit. Exploitation also depends on a frontend/backend parsing discrepancy in which the frontend honors the late framing header while Mongoose omits it.
What version should be used to remediate the issue?
The issue is fixed in Mongoose 7.24. Mongoose 7.23 is affected; earlier releases may also be affected, but their status has not been established.
How can I determine whether a deployment is affected?
Verify the bundled Mongoose version and whether it processes HTTP/1 traffic behind a frontend proxy or gateway. A relevant configuration is one where the frontend preserves Content-Length or Transfer-Encoding headers that appear after enough preceding headers to exhaust Mongoose's MG_MAX_HTTP_HEADERS table.