{"id":"CVE-2026-40606","aliases":["CVE-2026-40606","GHSA-527g-3w9m-29hv","PYSEC-2026-92"],"related":[],"kind":"vulnerability","state":"published","title":"ProxyAuth Addon LDAP Injection in mitmproxy","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nIn 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.\n\nOnly mitmproxy instances using the `proxyauth` option with LDAP are affected. This option is not enabled by default.\n\n### Patches\n\nThe vulnerability has been fixed in mitmproxy 12.2.2 and above.\n\n### Acknowledgements\n\nWe thank Yue (Knox) Liu (@yueyueL) for responsibly disclosing this vulnerability to the mitmproxy team.\n\n### Timeline\n\n- **2025-12-08**: Received initial report. \n- **2025-12-09**: Verified report and confirmed receipt.\n- **2026-01-02**: Informed researcher that patch will be part of the next regular patch release.\n- **2026-04-12**: Published patch release and advisory.","format":"markdown","source":"ghsa"},{"lang":"es","text":"mitmproxy es un proxy HTTP interceptor interactivo con capacidad TLS para pentesters y desarrolladores de software y mitmweb es una interfaz web para mitmproxy. En mitmproxy 12.2.1 y versiones anteriores, la autenticación de proxy LDAP integrada no sanea correctamente el nombre de usuario al consultar el servidor LDAP. Esto permite a un cliente malicioso omitir la autenticación. Solo las instancias de mitmproxy que utilizan la opción proxyauth con LDAP se ven afectadas. Esta opción no está habilitada por defecto. La vulnerabilidad ha sido corregida en mitmproxy 12.2.2 y versiones posteriores.","source":"nvd"}],"published":"2026-04-14T01:08:52.000Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-90"],"affected":[{"ranges":[{"version":"< 12.2.2","status":"affected"}],"vendor":"mitmproxy","product":"mitmproxy","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"12.2.2"}],"ecosystem":"PyPI","package":"mitmproxy","purl":"pkg:pypi/mitmproxy","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"12.2.2"}],"vendor":"mitmproxy","product":"mitmproxy","cpe":"cpe:2.3:a:mitmproxy:mitmproxy:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"12.2.2"}],"ecosystem":"PyPI","package":"mitmproxy","purl":"pkg:pypi/mitmproxy","source":"pysec"}],"references":[{"url":"https://github.com/mitmproxy/mitmproxy/security/advisories/GHSA-527g-3w9m-29hv","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40606","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mitmproxy/mitmproxy","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mitmproxy/PYSEC-2026-92.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-22T13:25:44.220Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40606","url":"https://www.cve.org/CVERecord?id=CVE-2026-40606","licence":"CVE Terms of Use","modified":"2026-04-22T13:26:03.183Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-527g-3w9m-29hv","url":"https://github.com/advisories/GHSA-527g-3w9m-29hv","licence":"CC-BY-4.0","modified":"2026-06-06T01:15:07.895Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40606","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40606","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-92","url":"https://osv.dev/vulnerability/PYSEC-2026-92","licence":"CC-BY-4.0","modified":"2026-05-20T09:19:08.113Z"}],"updatedAt":"2026-11-25T22:59:19.127Z","epss":{"score":0.00267,"percentile":0.11792,"date":"2026-11-30T12:00:22.000Z"}}