CVE-2026-73257

Mongoose: Content-Length + Transfer-Encoding coexistence enables request smuggling

Published Aug 20, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
Mongoose is an embedded web server and network library. Priro to version 7.22, a remote unauthenticated attacker can send an HTTP request containing both Content-Length and Transfer-Encoding: chunked. The cl_count and te_count checks in the mg_http_parse() and http_cb() paths in src/http.c accept both headers and prioritize chunked encoding, while a Content-Length-preferring reverse proxy can use a different request boundary. This CL.TE desynchronization can inject requests that access or modify resources in another user context. This issue is fixed in version 7.22.

Analysis

AI-generated

Technical impact

A remote unauthenticated attacker can craft an HTTP request that contains both a Content-Length header and a Transfer-Encoding: chunked header. The Mongoose request parser accepts both headers and gives precedence to the chunked encoding. A reverse proxy that prefers the Content-Length header can thus interpret the request body boundary differently, allowing the attacker to smuggle a second request into the original one. This desynchronization enables the attacker to inject requests that access or modify resources belonging to another user or context, potentially leading to unauthorized data access or modification.

Affected Systems

All installations of the Cesanta Mongoose embedded web server and network library running any version prior to 7.22 are vulnerable. Mongoose is used in embedded devices, IoT gateways and other networked applications that integrate the library.

Risk and Exploitability

The vulnerability scores a CVSS of 9.1, indicating a high severity compromise of confidentiality, integrity, and availability. No EPSS data is published, and the issue is not yet listed in CISA's KEV catalog. The nature of the flaw means it can be exploited remotely over any HTTP interface without authentication, making the risk high for exposed services. Attackers could send the crafted request to smuggle a second request, bypassing authentication controls and causing unauthorized actions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Cesanta Mongoose to version 7.22 or later where the request parser no longer accepts both headers simultaneously
  • Configure any upstream reverse proxies to remove or transform the Transfer-Encoding header to prevent coexistence with Content-Length in forwarded requests
  • Enforce strict parsing rules in the application to reject HTTP requests that contain both Content-Length and Transfer-Encoding headers, ensuring that only one method of determining the request body length is used

Generated by OpenCVE AI on August 20, 2026 at 19:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:cesanta:mongoose:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Cesanta
Cesanta mongoose
Vendors & Products Cesanta
Cesanta mongoose
Type Values Removed Values Added
Description Mongoose is an embedded web server and network library. Priro to version 7.22, a remote unauthenticated attacker can send an HTTP request containing both Content-Length and Transfer-Encoding: chunked. The cl_count and te_count checks in the mg_http_parse() and http_cb() paths in src/http.c accept both headers and prioritize chunked encoding, while a Content-Length-preferring reverse proxy can use a different request boundary. This CL.TE desynchronization can inject requests that access or modify resources in another user context. This issue is fixed in version 7.22.
Title Mongoose: Content-Length + Transfer-Encoding coexistence enables request smuggling
Weaknesses CWE-444
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

Weaknesses
  • CWE-444

    Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 20, 2026, 7:34 PM
Reserved
Aug 11, 2026, 5:18 PM
Status
Analyzed
Published
Aug 20, 2026, 6:16 PM
Modified
Oct 18, 2026, 8:10 PM