Skip to content
OpenAdvisories
Medium · 4.8 CVE-2026-40606 EUVD-2026-24215GHSA-527g-3w9m-29hvPYSEC-2026-92

ProxyAuth Addon LDAP Injection in mitmproxy

Published Apr 21, 2026 · Updated Apr 22, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
mitmproxy mitmproxy < 12.2.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mitmproxy 8.1.1-5 —
Debian 12 mitmproxy No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 mitmproxy No fix yet —
Ubuntu 26.04 LTS mitmproxy No fix yet —
Ubuntu 25.10 mitmproxy No fix yet —
Ubuntu 24.04 LTS mitmproxy No fix yet —
Ubuntu 22.04 LTS mitmproxy No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS mitmproxy No fix yet —
Ubuntu 18.04 LTS mitmproxy No fix yet —
Ubuntu 16.04 LTS mitmproxy No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-mitmproxy 12.2.2-1.1 openSUSE-SU-2026:10622-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mitmproxy < 12.2.2 12.2.2 GHSA-527g-3w9m-29hv

Advisories 1

References