Advisory

GHSA-527g-3w9m-29hv

Also known as: CVE-2026-40606, PYSEC-2026-92

Summary

mitmproxy has an LDAP Injection

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-14 01:08 UTC
Modified
2026-06-06 01:15 UTC

Affected packages and fixes

mitmproxy

PyPI · All systems

Affected

  • introduced 0, fixed 12.2.2 (ecosystem)

Fixed versions

12.2.2

Fix

  • Fixed version 12.2.2
    pip install --upgrade mitmproxy==12.2.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences