Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-105660— Unvalidated HTTP/1 request-target authority lets a client choose conn.host and conn.port in Bandit

Quick assessment

Affected
mtrudel bandit
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

mtrudel bandit 存在一项输入语法正确性验证不当的安全漏洞。未经认证的远程攻击者可以通过 HTTP/1.1 绝对形式(absolute-form)或授权形式(authority-form)请求目标中的授权部分(authority),将 和 设置为不符合 RFC 3986 主机语法的值。 尽管 Bandit 会对 Host 头进行验证,并在其格式错误时返回 400 响应,但当请求目标自身包含授权信息时,根据 RFC 9112 的要求,该授权信息具有更高优先级。此时,位于 中的 函数会未经校验地将该授权信息

CVSS 6.9 · Medium

Affected Version Matrix 2

VendorProduct Version RangeStatus
mtrudel bandit 0.6.0< 1.13.0 affected
0e3edda0edf6322e9164b827c6d3ddecd080ff2e< 6ea80210137b3f69caf65f67398934259dc365d0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-105660

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Unvalidated HTTP/1 request-target authority lets a client choose conn.host and conn.port in Bandit
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-1286
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
mtrudel bandit 0.6.0 ~ 1.13.0 cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*
mtrudel bandit 0e3edda0edf6322e9164b827c6d3ddecd080ff2e ~ 6ea80210137b3f69caf65f67398934259dc365d0 cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-105660

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-105660

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-105660 (1)

Vendor Advisories for CVE-2026-105660 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2026-105660

No comments yet


Leave a comment