Advisory

PYSEC-2026-92

Also known as: CVE-2026-40606, GHSA-527g-3w9m-29hv

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 4.8, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Dates

Published
2026-04-21 18:16 UTC
Modified
2026-05-20 09:19 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: PyPA Advisory Database · CC BY 4.0

Sources & licences