Skip to main content

CVE-2026-105660: CWE-1286 Improper Validation of Syntactic Correctness of Input in mtrudel bandit

0
Medium
VulnerabilityCVE-2026-105660cvecve-2026-105660cwe-1286
Published: 10/15/2026 (10/15/2026, 18:37:02 UTC)
Source: CVE Database V5
Vendor/Project: mtrudel
Product: bandit

Description

CVE-2026-105660 is a medium severity vulnerability in mtrudel bandit affecting versions from 0.6.0 up to but not including 1.13.0. It involves improper validation of the syntactic correctness of input in HTTP request targets, allowing an unauthenticated remote attacker to set conn.host and conn.port to values outside the RFC 3986 host grammar. This can lead to the application emitting URLs with attacker-chosen authority components. The vulnerability does not affect message framing and does not allow CR or LF characters in conn.host.

CVSS v4.0

Score 6.9medium

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

Affected software

mtrudel

bandit

Affected versions
>=0.6.0 <1.13.0

mtrudel

bandit

bandit
pkg:hex/bandit
Affected versions
>=0.6.0 <1.13.0
GitHub Actionsmore threats →cve
mtrudel/bandit
pkg:github/mtrudel/bandit
CPE configurations
cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/15/2026, 19:02:53 UTC

Technical Analysis

The vulnerability arises because bandit validates the Host header and rejects malformed values with a 400 response, but when the HTTP request target carries its own authority (per RFC 9112), that authority takes precedence and is passed unchecked to the application via Bandit.Pipeline.determine_host_and_port!/4. This allows an attacker to craft request lines such as 'GET http://[email protected]/x HTTP/1.1' that result in conn.host being set to '[email protected]', including invalid characters such as NUL, DEL, non-ASCII bytes, invalid IP literals, and ports outside the valid range 1..65535. This affects applications that build absolute URLs from conn.host, potentially causing them to emit links with attacker-controlled authority. The issue affects bandit versions >=0.6.0 and <1.13.0.

Potential Impact

An unauthenticated remote attacker can manipulate the conn.host and conn.port values used by the application, potentially causing it to generate URLs with attacker-controlled authority components. This could lead to security issues such as phishing or redirect attacks if these URLs are used in responses or logs. However, message framing is not affected, and no carriage return or line feed characters can reach conn.host, limiting injection vectors.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no explicit patch or fix link is provided, users should monitor official mtrudel bandit advisories for updates and apply any forthcoming patches that address this input validation issue. Until then, avoid relying on conn.host for security-sensitive decisions or URL generation without additional validation.

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-10-10T13:15:02.320Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ad120372cdf04f656517bbb

Added to database: 10/15/2026, 18:49:27 UTC

Last enriched: 10/15/2026, 19:02:53 UTC

Last updated: 10/15/2026, 19:04:20 UTC

Views: 3

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