CVE-2026-105660
Unvalidated HTTP/1 request-target authority lets a client choose conn.host and conn.port in Bandit
Check your servers for CVE-2026-105660
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-105660 affects bandit, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Improper Validation of Syntactic Correctness of Input vulnerability in mtrudel bandit allows an unauthenticated remote attacker to set conn.host and conn.port to values outside the RFC 3986 host grammar via the authority of an HTTP/1 absolute-form or authority-form request target. Bandit validates the Host header and answers 400 when it is malformed, but when the request target carries its own authority that authority takes precedence, as RFC 9112 requires, and Bandit.Pipeline.determine_host_and_port!/4 in lib/bandit/pipeline.ex passes it to the application unchecked. A request line such as GET http://good.example@evil.example/x HTTP/1.1 with a valid Host header yields a conn.host of good.example@evil.example, and the same path admits NUL, DEL and non-ASCII bytes, invalid IP literals and ports outside 1..65535. The HTTP/1.0 clause needs no Host header at all, and CONNECT places the unparsed port string in conn.port.
Applications that build absolute URLs from conn.host, such as through Plug.Conn.request_url/1 or Phoenix URL helpers, emit links whose authority the attacker chose. Message framing is unaffected, and no CR or LF can reach conn.host.
This issue affects bandit: from 0.6.0 before 1.13.0.
Severity (CVSS)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity low, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.48%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 42.9% of all scored CVEs. Scores of 2 Dec 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-1286 Improper Validation of Syntactic Correctness of Input
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
bandit
package
bandit |
affected from 0.6.0, before 1.13.0
Other versions: unaffected
|
|
bandit
package
mtrudel/bandit |
affected from 0e3edda0edf6322e9164b827c6d3ddecd080ff2e, before 6ea80210137b3f69caf65f67398934259dc365d0
Other versions: unaffected
|
Is my server affected?
Find the installed version of bandit and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i bandit
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-105660 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-105660RHEL, Rocky, Alma, Fedora
rpm -q bandit
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-105660Alpine
apk list --installed | grep -i banditWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-105660
trivy image --scanners vuln IMAGE | grep CVE-2026-105660
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit 6ea8021 in mtrudel/bandit github.com · patch
Exploits and proof of concept
- GitHub Advisory github.com · related, vendor advisory, exploit
Other references
- EEF CNA record for CVE-2026-105660 cna.erlef.org · related
- OSV record EEF-CVE-2026-105660 osv.dev · related
- Introducing commit 0e3edda in mtrudel/bandit github.com · related
Source: the record CVE-2026-105660 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse