CVE-2026-141510: Mongoose: HTTP header-table exhaustion causes request smuggling and frontend ACL bypass
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 exposed to request smuggling and ACL bypass?
Deployments using Mongoose 7.23 behind a conforming HTTP frontend are exposed when the frontend preserves a framing header that appears after Mongoose's fixed HTTP header table is exhausted. The described ACL bypass depends on the frontend enforcing path-based access controls.
What must an attacker send to exploit the issue?
An attacker must send an HTTP/1 request with enough headers to exhaust MG_MAX_HTTP_HEADERS and place a framing header, such as Content-Length or Transfer-Encoding, later in the header list. This causes the frontend and Mongoose to disagree on request-body boundaries, allowing subsequent bytes to be interpreted as a second request by Mongoose.
Is a fix available, and what should be upgraded?
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.