4.8medium
ProxyAuth Addon LDAP Injection in mitmproxy
- Severity
- 4.8medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.27% (higher than 12% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-527g-3w9m-29hvPYSEC-2026-92
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
| Product or package | Versions | Reported by |
|---|---|---|
| mitmproxy mitmproxy | < 12.2.2, before 12.2.2 | CVE List, NVD |
| mitmproxy (PyPI) | before 12.2.2 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| PyPA Advisory Database | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
The vulnerability has been fixed in mitmproxy 12.2.2 and above.
Acknowledgements
We thank Yue (Knox) Liu (@yueyueL) for responsibly disclosing this vulnerability to the mitmproxy team.
Timeline
- 2025-12-08: Received initial report.
- 2025-12-09: Verified report and confirmed receipt.
- 2026-01-02: Informed researcher that patch will be part of the next regular patch release.
- 2026-04-12: Published patch release and advisory.
NVD (es)
mitmproxy es un proxy HTTP interceptor interactivo con capacidad TLS para pentesters y desarrolladores de software y mitmweb es una interfaz web para mitmproxy. En mitmproxy 12.2.1 y versiones anteriores, la autenticación de proxy LDAP integrada no sanea correctamente el nombre de usuario al consultar el servidor LDAP. Esto permite a un cliente malicioso omitir la autenticación. Solo las instancias de mitmproxy que utilizan la opción proxyauth con LDAP se ven afectadas. Esta opción no está habilitada por defecto. La vulnerabilidad ha sido corregida en mitmproxy 12.2.2 y versiones posteriores.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40606 changed 2026-04-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-527g-3w9m-29hv changed 2026-06-06 | CC-BY-4.0 |
| NVD | CVE-2026-40606 changed 2026-11-11 | Public domain |
| PyPA Advisory Database | PYSEC-2026-92 changed 2026-05-20 | CC-BY-4.0 |