CVE-2026-40606: ProxyAuth Addon LDAP Injection in mitmproxy

Published Apr 14, 2026
·
Updated

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.

Other sources

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.

— MITRE

Affected Software

2 affected componentsFixes available
pip/mitmproxy<=12.2.1
12.2.2
mitmproxy mitmproxy<12.2.2

Event History

Apr 14, 2026
Advisory Published
via GitHub·01:08 AM
Data Sourced
via GitHub·01:08 AM
DescriptionSeverityWeaknessAffected Software
Apr 21, 2026
CVE Published
via MITRE·05:43 PM
Data Sourced
via MITRE·05:43 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-40606?

The severity of CVE-2026-40606 is medium with a score of 4.8.

2

How do I fix CVE-2026-40606?

To fix CVE-2026-40606, upgrade to a version of mitmproxy above 12.2.1 that has addressed this LDAP injection vulnerability.

3

What impact does CVE-2026-40606 have on mitmproxy?

CVE-2026-40606 allows a malicious client to bypass authentication due to improper sanitization of usernames in LDAP proxy authentication.

4

Which versions of mitmproxy are affected by CVE-2026-40606?

Mitmproxy versions 12.2.1 and below are affected by CVE-2026-40606.

5

What configuration option exposes mitmproxy to CVE-2026-40606?

The 'proxyauth' option with LDAP authentication exposes mitmproxy to CVE-2026-40606.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203