Vulnerability · Published Apr 21, 2026 · Assigned by GitHub_M

CVE-2026-40606ProxyAuth Addon LDAP Injection in mitmproxy

Medium 4.8

In plain English

A medium-severity security flaw in mitmproxy from mitmproxy. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 6% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.8Medium
Exploit odds (30 days)0.2%top 94.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12mitmproxyno fix listedDEBIAN-CVE-2026-40606
Debian:14mitmproxyno fix listedDEBIAN-CVE-2026-40606
PyPImitmproxy12.2.2GHSA-527g-3w9m-29hv
PyPImitmproxy12.2.2PYSEC-2026-92
Ubuntu:22.04:LTSmitmproxyno fix listedUBUNTU-CVE-2026-40606
Ubuntu:24.04:LTSmitmproxyno fix listedUBUNTU-CVE-2026-40606
Ubuntu:25.10mitmproxyno fix listedUBUNTU-CVE-2026-40606
Ubuntu:26.04:LTSmitmproxyno fix listedUBUNTU-CVE-2026-40606
Ubuntu:26.10mitmproxyno fix listedUBUNTU-CVE-2026-40606

Affected products (as reported)

VendorProductVersions
mitmproxy mitmproxy < 12.2.2

Weakness: CWE-90 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

References