Live threats

All CVEs / Mitmproxy

CVE-2026-40606Mitmproxy

Medium 4.8 No auth needed

Priority
44
CVSS 3.1
4.8
EPSS
—
Auth required
No
Published
Apr 21, 2026
Updated
Nov 11, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-90
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mitmproxy.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI mitmproxy < 12.2.2 12.2.2 pip install "mitmproxy>=12.2.2"
PyPI mitmproxy < 12.2.2 12.2.2 pip install "mitmproxy>=12.2.2"

Per OSV / GitHub Advisories (GHSA-527g-3w9m-29hv, PYSEC-2026-92). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mitmproxymitmproxy< 12.2.2

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.