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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-21 · Modified: 2026-04-22
- Aliases: GHSA-527g-3w9m-29hv, PYSEC-2026-92, UBUNTU-CVE-2026-40606, DEBIAN-CVE-2026-40606, openSUSE-SU-2026:10622-1, ALPINE-CVE-2026-40606
- Record: https://cvemate.com/vulnerability/CVE-2026-40606 · JSON: https://cvemate.com/vulnerability/CVE-2026-40606/json

## Description

```text
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.
```

## Signals

- CVSS: 4.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.173%, percentile 6.909%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine mitmproxy (Alpine Linux): \< 12.3.1-r0
- debian mitmproxy (Debian): All versions (No fix recorded) \| \< 8.1.1-5
- ubuntu mitmproxy (Ubuntu): All versions (No fix recorded)
- mitmproxy mitmproxy: \< 12.2.2
- PyPI mitmproxy (PyPI): \< 12.2.2
- opensuse python-mitmproxy&distro=openSUSE Tumbleweed (openSUSE): \< 12.2.2-1.1

## References

- <https://github.com/mitmproxy/mitmproxy/security/advisories/GHSA-527g-3w9m-29hv>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40606>
- <https://github.com/mitmproxy/mitmproxy>
- <https://github.com/pypa/advisory-database/tree/main/vulns/mitmproxy/PYSEC-2026-92.yaml>
- <https://ubuntu.com/security/CVE-2026-40606>
- <https://www.cve.org/CVERecord?id=CVE-2026-40606>
- <https://github.com/mitmproxy/mitmproxy/commit/71c9234057922bc29b9734ec408d712113d294d2>
- <https://security-tracker.debian.org/tracker/CVE-2026-40606>
- <https://www.suse.com/security/cve/CVE-2026-40606>
- <https://security.alpinelinux.org/vuln/CVE-2026-40606>

---

Data as of 2026-12-05T14:33:09.679Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
