CVE-2026-40606: mitmproxy LDAP Injection
Vulnerability summary
CVE-2026-40606 is a medium (CVSS 4.8) LDAP Injection vulnerability in mitmproxy. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 16.3% of scored vulnerabilities.
Timeline
- 21-04-2026PublishedVulnerability first disclosed.
- 22-04-2026Last modifiedVulnerability information updated.
Description
mitmproxy is a interactive TLS-capable intercepting HTTP proxy for penetration testers and software developers and mitmweb is a web-based interface for mitmproxy. In mitmproxy 12.2.1 and below, the builtin LDAP proxy authentication does not correctly sanitize the username when querying the LDAP server. This allows a malicious client to bypass authentication. Only mitmproxy instances using the proxyauth option with LDAP are affected. This option is not enabled by default. The vulnerability has been fixed in mitmproxy 12.2.2 and above.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · PypiEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- NVDNIST4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
16%
Versus all other CVEs
30-day change
+0.09 pp
From 0.17% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Debian1 product
- mitmproxyAll versions (No fix recorded)
Mitmproxy1 product
- mitmproxy< 12.2.2
Opensuse1 product
- python-mitmproxy&distro=openSUSE Tumbleweed< 12.2.2-1.1
PyPI1 product
- mitmproxy< 12.2.2
Ubuntu1 product
- mitmproxyAll versions (No fix recorded)
5 vendors · 5 products
References
9 links- github.com/mitmproxy/mitmproxy/security/advisories/GHSA-527g-3w9m-29hvX Refsource CONFIRMWEBAdvisoryREPORTVendor Advisory