{"id":"CVE-2026-40606","published":"2026-04-21T17:43:21Z","modified":"2026-04-22T13:26:03Z","title":"ProxyAuth Addon LDAP Injection in mitmproxy","vendor":"mitmproxy","product":"mitmproxy","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00173,"percentile":0.06848,"provenance":"source"},"cwes":[{"id":"CWE-90","name":"Improper Neutralization of Special Elements used in an LDAP Query"}],"references":[{"url":"https://github.com/mitmproxy/mitmproxy/security/advisories/GHSA-527g-3w9m-29hv","tags":["x_refsource_CONFIRM"]}],"priority":{"score":4.7,"factors":[{"name":"EPSS percentile","points":1.37},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"mitmproxy","affectedVersions":[{"vendor":"mitmproxy","product":"mitmproxy","versions":["< 12.2.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-22T13:25:44.220522Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mitmproxy","vulnerableRanges":["<12.2.2"],"patched":["12.2.2"],"from":["GHSA-527g-3w9m-29hv","PYSEC-2026-92"],"provenance":"source"}],"summary":{"text":"The ProxyAuth LDAP authentication in mitmproxy (and mitmweb) fails to sanitize the username used in LDAP queries, causing an LDAP injection flaw; it affects only deployments that enable the proxyauth option with LDAP, which is off by default. A remote client that can reach the proxy and is not required to authenticate or interact with a user can craft a username to bypass authentication, with high attack complexity, and this is fixed in mitmproxy 12.2.2 and above.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:22Z"},"euvd":{"id":"EUVD-2026-24215","exploited":false,"provenance":"source"}}