Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 90%

CVE-2026-39805: CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') in mtrudel bandit

0
Medium
VulnerabilityCVE-2026-39805cvecve-2026-39805cwe-444
Published: Fri May 01 2026 (05/01/2026, 20:34:29 UTC)
Source: CVE Database V5
Vendor/Project: mtrudel
Product: bandit

Description

Inconsistent Interpretation of HTTP Requests vulnerability in mtrudel bandit allows HTTP request smuggling via duplicate Content-Length headers. 'Elixir.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: before 1.11.0.

CVSS v4.0

Score 6.3medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Affected versions
=0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/27/2026, 20:05:59 UTC

Technical Analysis

The vulnerability in mtrudel bandit stems from the function 'Elixir.Bandit.Headers':get_content_length/1, which uses List.keyfind/3 to retrieve the Content-Length header but only considers the first occurrence. When an HTTP request contains two Content-Length headers with differing values, Bandit reads the body length based on the first header and treats the remaining bytes as a second pipelined request. According to RFC 9112 §6.3, such inconsistent headers should cause the recipient to reject the request as a framing error. However, if Bandit is behind a proxy that uses the last Content-Length header and forwards the request, attackers can exploit this discrepancy to smuggle HTTP requests past security mechanisms like edge WAFs, path-based ACLs, rate limiting, and audit logging. This vulnerability affects all versions of bandit before 1.11.0. No patch or official remediation level has been announced as of the publication date.

Potential Impact

An unauthenticated attacker can exploit this vulnerability to smuggle HTTP requests past security controls such as web application firewalls, access control lists, rate limiting, and audit logging. This can lead to unauthorized access, bypass of security policies, and potential further exploitation depending on the backend application. The impact is limited to scenarios where Bandit is deployed behind a proxy that interprets duplicate Content-Length headers differently, enabling request smuggling attacks.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, administrators should consider deploying additional proxy or WAF configurations that reject or normalize requests with multiple conflicting Content-Length headers to prevent request smuggling. Monitoring for unusual request patterns involving duplicate Content-Length headers may also help detect exploitation attempts.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-04-07T12:28:54.916Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69f5124bcbff5d86105840de

Added to database: 5/1/2026, 8:51:23 PM

Last enriched: 5/27/2026, 8:05:59 PM

Last updated: 6/15/2026, 2:54:04 PM

Views: 84

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses