CVE-2026-39805 Details
Description
Inconsistent Interpretation of HTTP Requests vulnerability in mtrudel bandit allows HTTP request smuggling via duplicate Content-Length headers. Bandit.Headers.get_content_length/1 in lib/bandit/headers.ex uses List.keyfind/3, which returns only the first matching header. When a request contains two Content-Length headers with different values, Bandit silently accepts it, uses the first value to read the body, and dispatches the remaining bytes as a second pipelined request on the same keep-alive connection. RFC 9112 §6.3 requires recipients to treat this as an unrecoverable framing error. When Bandit sits behind a proxy that picks the last Content-Length value and forwards the request rather than rejecting it, an unauthenticated attacker can smuggle requests past edge WAF rules, path-based ACLs, rate limiting, and audit logging. This issue affects bandit: from 0.1.0 before 1.11.0.
A vulnerability allowing HTTP request smuggling has been identified in the mtrudel Bandit library, prior to version 1.11.0. This issue arises from an inconsistent interpretation of HTTP requests, specifically how duplicate Content-Length headers are handled. The 'Elixir.Bandit.Headers' module's 'get_content_length/1' function uses 'List.keyfind/3', which only retrieves the first matching header. When a request includes two Content-Length headers with differing values, Bandit accepts the request without error, uses the first header value to read the body, and then sends the remaining bytes as a second pipelined request over the same keep-alive connection. This behavior violates RFC 9112 §6.3, which mandates that such discrepancies be treated as unrecoverable framing errors. The vulnerability is exploitable when Bandit is behind a proxy that forwards the last Content-Length value, allowing an unauthenticated attacker to bypass edge WAF rules, path-based ACLs, rate limits, and audit logs.
Users can update to Bandit version 1.11.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 1, 2026CISA-ADP
Assessed May 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mtrudel/bandit/security/advisories/GHSA-c67r-gc9j-2qf7 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://cna.erlef.org/cves/CVE-2026-39805.html | EEF | AdvisoryBundle |
| https://github.com/mtrudel/bandit/commit/7bc8d97cd22697c299baa8012b7f419a7606a80c | EEF | |
| https://github.com/mtrudel/bandit/commit/f2ca636eb6df385219957e8934e9fc6efa1630d1 | EEF | Source CodeVendor |
| https://github.com/mtrudel/bandit/security/advisories/GHSA-c67r-gc9j-2qf7 | EEF | AdvisoryExploitRemedyVendor |
| https://osv.dev/vulnerability/EEF-CVE-2026-39805 | EEF | AdvisoryBundle |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-444 | Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') | EEF |
Affected Products
| Product | Versions |
|---|---|
| mtrudel bandit | All versions |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 20, 2026 | CVE Modified | CISA-ADP |
| Nov 20, 2026 | CVE Modified | EEF |
| Oct 26, 2026 | CVE Translated | [email protected] |
| Jul 24, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 2, 2026 | CVE Modified | CISA-ADP |
| May 1, 2026 | New CVE Received | EEF |
Volerion