The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-39805

CVE-2026-39805: Bandit HTTP Request Smuggling Vulnerability

CVE-2026-39805 is an HTTP request smuggling flaw in mtrudel Bandit caused by inconsistent handling of duplicate Content-Length headers. Attackers can bypass WAF rules and ACLs. This article covers technical details, affected versions, impact, and mitigation.

Published: May 7, 2026

CVE-2026-39805 Overview

CVE-2026-39805 is an HTTP request smuggling vulnerability in mtrudel Bandit, an HTTP server for Elixir Plug and Phoenix applications. The flaw stems from inconsistent interpretation of HTTP requests when a client submits two Content-Length headers with different values. Bandit accepts the malformed request and uses the first value, while many upstream proxies pick the last value, creating a desync between the proxy and the origin server. Bandit versions before 1.11.0 are affected. The vulnerability is tracked under [CWE-444] (Inconsistent Interpretation of HTTP Requests).

Critical Impact

Unauthenticated attackers can smuggle requests past edge WAF rules, path-based ACLs, rate limiting, and audit logging when Bandit sits behind a proxy that selects the last Content-Length value.

Affected Products

  • mtrudel Bandit versions prior to 1.11.0
  • Elixir Plug applications served by vulnerable Bandit releases
  • Phoenix Framework deployments using affected Bandit versions

Discovery Timeline

  • 2026-05-01 - CVE-2026-39805 published to NVD
  • 2026-05-05 - Last updated in NVD database

Technical Details for CVE-2026-39805

Vulnerability Analysis

The vulnerability resides in Elixir.Bandit.Headers.get_content_length/1 within lib/bandit/headers.ex. The function uses List.keyfind/3, which returns only the first matching header tuple. When a request contains two Content-Length headers with different values, Bandit silently accepts the request and reads body bytes according to the first value. The remaining bytes are then treated as a second pipelined request on the same keep-alive connection.

RFC 9112 §6.3 explicitly requires recipients to treat duplicate, conflicting Content-Length headers as an unrecoverable framing error. Bandit's permissive handling violates this requirement.

When Bandit operates behind a reverse proxy or WAF that selects the last Content-Length value, the two parsers disagree on where one request ends and the next begins. An attacker exploits this disagreement to inject a second request that bypasses edge security controls.

Root Cause

The root cause is the use of List.keyfind/3 in get_content_length/1, which returns only the first match instead of detecting duplicate headers. Bandit performs no validation that exactly one Content-Length header is present before parsing the body length.

Attack Vector

The attack vector is network-based and requires no authentication. An attacker crafts an HTTP request containing two Content-Length headers with different values. The request is sent through any intermediary proxy that forwards the malformed request rather than rejecting it. The smuggled portion is interpreted as a separate request by Bandit, bypassing any proxy-enforced controls including authentication checks, rate limits, and audit logging.

elixir
@spec get_content_length(Plug.Conn.headers()) ::
        {:ok, nil | non_neg_integer()} | {:error, String.t()}
def get_content_length(headers) do
-    case get_header(headers, "content-length") do
-      nil -> {:ok, nil}
-      value -> parse_content_length(value)
+    # We need to special case this because we don't accept multiple content-length headers
+    case Enum.filter(headers, &(elem(&1, 0) == "content-length")) do
+      [] -> {:ok, nil}
+      [{"content-length", value}] -> parse_content_length(value)
+      _ -> {:error, "invalid content-length header (RFC9112§6.3)"}
    end
end

Source: GitHub Bandit Commit f2ca636. The patch replaces List.keyfind/3 with Enum.filter/2 and explicitly rejects requests carrying multiple Content-Length headers, returning a framing error consistent with RFC 9112 §6.3.

Detection Methods for CVE-2026-39805

Indicators of Compromise

  • HTTP requests received by Bandit with two or more Content-Length headers in a single request
  • Unexpected pipelined requests on keep-alive connections that did not traverse the front-end proxy log
  • Origin server access logs showing requests with paths or methods that should have been blocked at the edge WAF
  • Discrepancies between proxy access logs and Bandit access logs for the same client connection

Detection Strategies

  • Inspect raw HTTP headers at the proxy layer for duplicate Content-Length occurrences and alert on any match
  • Compare request counts and URIs between the upstream proxy and the Bandit application logs to identify smuggled requests
  • Deploy WAF signatures that reject any request containing more than one Content-Length header before forwarding upstream
  • Review Phoenix or Plug telemetry for sudden bursts of requests on a single keep-alive connection from the same source IP

Monitoring Recommendations

  • Forward Bandit access logs to a centralized logging or SIEM platform and correlate with edge proxy logs by connection identifier
  • Alert on parser errors from upstream proxies that indicate framing mismatches
  • Track Bandit version inventory across deployments to confirm patched releases are running

How to Mitigate CVE-2026-39805

Immediate Actions Required

  • Upgrade mtrudel Bandit to version 1.11.0 or later across all Elixir and Phoenix deployments
  • Audit the upstream proxy or load balancer to confirm it rejects requests with duplicate Content-Length headers
  • Review recent access logs for evidence of smuggled requests bypassing edge controls

Patch Information

The fix is committed in GitHub commit f2ca636 and published in Bandit 1.11.0. Additional context is available in the GitHub Security Advisory GHSA-c67r-gc9j-2qf7 and the CNA advisory from the Erlang Ecosystem Foundation. The patched function uses Enum.filter/2 to detect multiple Content-Length headers and returns {:error, "invalid content-length header (RFC9112§6.3)"} when more than one is present.

Workarounds

  • Configure the upstream proxy or WAF to reject any inbound request with multiple Content-Length headers before it reaches Bandit
  • Disable HTTP keep-alive at the proxy boundary to limit smuggling impact while patching is in progress
  • Add a custom Plug at the application entry point that inspects raw headers and returns 400 when duplicate Content-Length values are detected
bash
# Update Bandit dependency in mix.exs to the patched release
# {:bandit, "~> 1.11.0"}
mix deps.update bandit
mix deps.get
mix compile

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechBandit

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-444
  • Technical References
  • CNA CVE-2026-39805

  • GitHub Bandit Commit

  • GitHub Security Advisory

  • OSV CVE-2026-39805
  • Related CVEs
  • CVE-2026-39807: Bandit Auth Bypass Vulnerability

  • CVE-2026-42786: Bandit WebSocket DoS Vulnerability

  • CVE-2026-42788: Bandit HTTP/2 Frame DoS Vulnerability

  • CVE-2026-39804: Bandit WebSocket Compression DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English