CVE-2026-40606

Medium

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.

SeverityMedium
CVSS4.8
Exploit probability—
ProductMitmproxy
PublishedApr 21, 2026
First seenApr 21, 2026
Weakness typeCWE-90CWE-90

How to fix

Update
  • mitmproxy mitmproxy12.2.2 or later
  • mitmproxy12.2.2 or later

Affected products

ProductAffected versionsFixed in
mitmproxy mitmproxyv < 12.2.212.2.2
mitmproxyPyPIv < 12.2.212.2.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.