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

Published Aug 20, 2026
·
Updated

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 clcount and tecount checks in the mghttpparse() and httpcb() 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.

Affected Software

1 affected component
Mongoose<7.22

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Mongoose (embedded web server and network library) to a version that resolves this vulnerability.

    Fixed in 7.22

Event History

Aug 20, 2026
CVE Published
via MITRE·05:30 PM
Data Sourced
via MITRE·05:30 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Mongoose deployments before version 7.22 are affected when they sit behind a reverse proxy that prefers Content-Length while Mongoose processes Transfer-Encoding: chunked. The differing request-boundary interpretation enables CL.TE desynchronization.

2

What does an attacker need to exploit the vulnerability?

An attacker needs only remote network access and does not need authentication or user interaction. They must be able to send an HTTP request containing both Content-Length and Transfer-Encoding: chunked headers.

3

What is the practical impact of successful exploitation?

A successful request-smuggling attack can inject requests that access or modify resources in another user's context. Confidentiality and integrity are affected, while no availability impact is specified.

4

What should be done if the affected version cannot be upgraded immediately?

The provided information identifies version 7.22 as the fix. It does not specify a workaround; prioritize preventing requests with both Content-Length and Transfer-Encoding: chunked from reaching the affected Mongoose service, particularly through Content-Length-preferring reverse proxies.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203