Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mitmproxy
  4. ›
  5. GHSA-527g-3w9m-29hv

GHSA-527g-3w9m-29hv: LDAP Injection in mitmproxy

April 14, 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

Code Behaviors & Features

Detect and mitigate GHSA-527g-3w9m-29hv 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/GHSA-527g-3w9m-29hv.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:17:56 +0000.