{"answers":{"affected":"3 open source packages ship an affected version, including bandit. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39806 exists.","fix":"Upgrade bandit to 1.11.1 or later.","what":"CVE-2026-39806 is a high-severity denial of service vulnerability in mtrudel bandit, published on 13 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-39806 and fix it if it is affected.\n\nWhat it is: CVE-2026-39806 is a high-severity denial of service vulnerability in mtrudel bandit, published on 13 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39806 exists.\n\nAffected packages and fixed versions:\n- bandit (Hex): affected from 1.6.0; fixed in 1.11.1\n- bandit (Hex): affected from 1.6.0; fixed in 1.11.1\n- bandit (Hex): affected from 1.6.1; fixed in 1.11.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-39806/ (Markdown: https://insights.sbomify.com/CVE-2026-39806/index.md)","id":"CVE-2026-39806","markdown":"https://insights.sbomify.com/CVE-2026-39806/index.md","name":"CVE-2026-39806","record":{"aliases":["EEF-CVE-2026-39806","GHSA-rf5q-vwxw-gmrf"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Elixir HTTP server","requires_auth":"none","summary":"Unauthenticated attackers can cause denial of service in Bandit by sending chunked requests with trailer fields, exhausting worker processes.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[{"product":"bandit","vendor":"mtrudel"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"description":"Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in mtrudel bandit allows unauthenticated remote denial of service via worker process exhaustion.\n\n'Elixir.Bandit.HTTP1.Socket':do_read_chunked_data!/5 in lib/bandit/http1/socket.ex terminates only when the last-chunk line 0\\r\\n is followed immediately by the empty trailer line \\r\\n. RFC 9112 §7.1.2 permits zero or more trailer fields between them. When trailers are present, none of the match clauses fit: the catch-all arm computes a negative to_read, calls read_available!/2, receives \u003c\u003c\u003e\u003e on timeout, and tail-recurses with unchanged state. The worker process is pinned for the lifetime of the TCP connection.\n\nA handful of concurrent connections sending RFC-conformant chunked requests with trailer fields is sufficient to exhaust the Bandit worker pool and render the server unresponsive to all further traffic. No authentication, special headers, or large payload is required. Proxies such as NGINX and HAProxy legitimately forward trailer-bearing requests, so servers behind such proxies may be affected without any malicious client involvement.\n\nThis issue affects bandit: from 1.6.1 before 1.11.1.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"HTTP/1 chunked decoder infinite loop on requests with trailer fields in bandit","id":"CVE-2026-39806","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"Client-supplied URI scheme trusted without transport verification in bandit","id":"CVE-2026-39807"},"packages":[{"ecosystem":"Hex","fixed":["1.11.1"],"introduced":["1.6.0"],"last_affected":[],"package":"bandit","purl":null,"source":"GHSA-rf5q-vwxw-gmrf"},{"ecosystem":"Hex","fixed":["1.11.1"],"introduced":["1.6.0"],"last_affected":[],"package":"bandit","purl":"pkg:hex/bandit","source":"GHSA-rf5q-vwxw-gmrf"},{"ecosystem":"Hex","fixed":["1.11.1"],"introduced":["1.6.1"],"last_affected":[],"package":"bandit","purl":"pkg:hex/bandit","source":"EEF-CVE-2026-39806"}],"prev":{"headline":"CL.CL HTTP request smuggling via duplicate Content-Length in bandit","id":"CVE-2026-39805"},"products":["bandit"],"published":"2026-05-13","related":[{"cvss_score":8.7,"headline":"HTTP/1 chunked body reader ignores length cap in bandit","id":"CVE-2026-39803","kev_date_added":null,"published":"2026-05-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-27","vendors":["mtrudel"]},"summary":"Unauthenticated attackers can cause denial of service in Bandit by sending chunked requests with trailer fields, exhausting worker processes.","url":"https://insights.sbomify.com/CVE-2026-39806/"}