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.
Published: 2026-08-20
Score: 9.1 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Thu, 20 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Cesanta
Cesanta mongoose
Vendors & Products Cesanta
Cesanta mongoose

Thu, 20 Aug 2026 17:45:00 +0000

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'}


Subscriptions

Cesanta Mongoose
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-20T19:34:58.840Z

Reserved: 2026-08-11T17:18:01.598Z

Link: CVE-2026-73257

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T18:16:46.973

Modified: 2026-08-20T18:16:46.973

Link: CVE-2026-73257

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T18:30:03Z

Weaknesses
  • CWE-444

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