CVE-2026-40606Mitmproxy
Medium 4.8 No auth needed
Follow: this CVE · Mitmproxy · Mitmproxy We alert you by email or Slack (account required).
- Priority
- 44
- CVSS 3.1
- 4.8
- EPSS
- —
- Auth required
- No
- Published
- Apr 21, 2026
- Updated
- Nov 11, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-90
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Mitmproxy.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mitmproxy |
< 12.2.2 |
12.2.2 |
pip install "mitmproxy>=12.2.2" |
| PyPI | mitmproxy |
< 12.2.2 |
12.2.2 |
pip install "mitmproxy>=12.2.2" |
Per OSV / GitHub Advisories (GHSA-527g-3w9m-29hv, PYSEC-2026-92). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mitmproxy | mitmproxy | < 12.2.2 |
Official advisories
- python313-mitmproxy-12.2.2-1.1 on GA media · SUSE · openSUSE-SU-2026:10622-1 · Apr 26, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory