{"answers":{"affected":"3 open source packages ship an affected version, including mitmproxy. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40606 in the wild and no public exploit code.","fix":"Upgrade mitmproxy to 12.2.2 or later.","what":"CVE-2026-40606 is a medium-severity authentication bypass vulnerability in mitmproxy, published on 21 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40606 and fix it if it is affected.\n\nWhat it is: CVE-2026-40606 is a medium-severity authentication bypass vulnerability in mitmproxy, published on 21 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40606 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mitmproxy (PyPI): affected all versions; fixed in 12.2.2\n- mitmproxy (PyPI): affected all versions; fixed in 12.2.2\n- mitmproxy (PyPI): affected all versions; fixed in 12.2.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40606/ (Markdown: https://insights.sbomify.com/CVE-2026-40606/index.md)","id":"CVE-2026-40606","markdown":"https://insights.sbomify.com/CVE-2026-40606/index.md","name":"CVE-2026-40606","record":{"aliases":["DEBIAN-CVE-2026-40606","GHSA-527g-3w9m-29hv","PYSEC-2026-92","UBUNTU-CVE-2026-40606","openSUSE-SU-2026:10622-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"mitmproxy LDAP auth","requires_auth":"none","summary":"Attackers can bypass authentication in mitmproxy's LDAP proxy auth feature by injecting malicious LDAP queries via unsanitized usernames.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mitmproxy","vendor":"mitmproxy"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-90","name":"Improper Neutralization of Special Elements used in an LDAP Query"}],"description":"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.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"ProxyAuth Addon LDAP Injection in mitmproxy","id":"CVE-2026-40606","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"MantisBT is Vulnerable to Stored XSS Through its Saved-Filter Owner Column","id":"CVE-2026-40607"},"packages":[{"ecosystem":"PyPI","fixed":["12.2.2"],"introduced":["0"],"last_affected":[],"package":"mitmproxy","purl":null,"source":"GHSA-527g-3w9m-29hv"},{"ecosystem":"PyPI","fixed":["12.2.2"],"introduced":["0"],"last_affected":[],"package":"mitmproxy","purl":"pkg:pypi/mitmproxy","source":"GHSA-527g-3w9m-29hv"},{"ecosystem":"PyPI","fixed":["12.2.2"],"introduced":["0"],"last_affected":[],"package":"mitmproxy","purl":"pkg:pypi/mitmproxy","source":"PYSEC-2026-92"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["12.2.2-1.1"],"introduced":["0"],"last_affected":[],"package":"python-mitmproxy","purl":"pkg:rpm/opensuse/python-mitmproxy\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10622-1"}],"prev":{"headline":"Tautulli Vulnerable to Authenticated Path Traversal in Cache Deletion API","id":"CVE-2026-40605"},"products":["mitmproxy"],"published":"2026-04-21","related":[{"cvss_score":9.8,"headline":"Insufficient Protection against HTTP Request Smuggling in mitmproxy","id":"CVE-2022-24766","kev_date_added":null,"published":"2022-03-21"},{"cvss_score":8.8,"headline":"Mitmweb in mitmproxy allows DNS Rebinding attacks","id":"CVE-2018-14505","kev_date_added":null,"published":"2018-07-22"},{"cvss_score":8.1,"headline":"Lacking Protection against HTTP Request Smuggling in mitmproxy","id":"CVE-2021-39214","kev_date_added":null,"published":"2021-09-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-22","vendors":["mitmproxy"]},"summary":"Attackers can bypass authentication in mitmproxy's LDAP proxy auth feature by injecting malicious LDAP queries via unsanitized usernames.","url":"https://insights.sbomify.com/CVE-2026-40606/"}