CVE-2026-39805
published medium CVSS 4.0 · 6.3CL.CL HTTP request smuggling via duplicate Content-Length in bandit
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mtrudel | — | bandit0.1.0 to < 1.11.0 · Other versions: unaffected | Affected | Not stated | EEF |
| mtrudel | — | mtrudel/banditbandit · 7bc8d97cd22697c299baa8012b7f419a7606a80c to < f2ca636eb6df385219957e8934e9fc6efa1630d1 · Other versions: unaffected | Affected | Not stated | EEF |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mtrudel | bandit | 0.1.0 to < 1.11.0 (affected · semver)Default: unaffected | EEF · cna |
| mtrudel | bandit | 7bc8d97cd22697c299baa8012b7f419a7606a80c to < f2ca636eb6df385219957e8934e9fc6efa1630d1 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-444 CWE-444 Inconsistent Interpretation of HTTP Requests
References
5- EEF CNA record for CVE-2026-39805 https://cna.erlef.org/cves/CVE-2026-39805.html
- Introducing commit 7bc8d97 in mtrudel/bandit https://github.com/mtrudel/bandit/commit/7bc8d97cd22697c299baa8012b7f419a7606a80c
- Fix commit f2ca636 in mtrudel/bandit https://github.com/mtrudel/bandit/commit/f2ca636eb6df385219957e8934e9fc6efa1630d1
- CL.CL request smuggling via unrejected duplicate `Content-Length https://github.com/mtrudel/bandit/security/advisories/GHSA-c67r-gc9j-2qf7
- OSV record EEF-CVE-2026-39805 https://osv.dev/vulnerability/EEF-CVE-2026-39805
Provider assertions
2EEF · cna
CL.CL HTTP request smuggling via duplicate Content-Length in bandit
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 638c7cbb19d21c92cfb0df60cb0b23efdaa2c0ac6b9e51904b22f4833da052a9
- Ingested
- 20 Nov 2026, 04:28:52 UTC
- Source record
- Official CVE record