Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mitmproxy
  4. ›
  5. CVE-2026-40606

CVE-2026-40606: mitmproxy has an LDAP Injection

April 14, 2026 (updated April 27, 2026)

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.

References

  • github.com/advisories/GHSA-527g-3w9m-29hv
  • github.com/mitmproxy/mitmproxy
  • github.com/mitmproxy/mitmproxy/security/advisories/GHSA-527g-3w9m-29hv
  • nvd.nist.gov/vuln/detail/CVE-2026-40606

Code Behaviors & Features

Detect and mitigate CVE-2026-40606 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 12.2.2

Fixed versions

  • 12.2.2

Solution

Upgrade to version 12.2.2 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')

Source file

pypi/mitmproxy/CVE-2026-40606.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:32 +0000.