{"id":"GHSA-wg33-5h85-7q5p","summary":"Mitmweb API Authentication Bypass Using Proxy Server","details":"### Impact\nIn mitmweb 11.1.0 and below, a malicious client can use mitmweb's proxy server (bound to `*:8080` by default) to access mitmweb's internal API (bound to `127.0.0.1:8081` by default). In other words, while the client cannot access the API directly (good), they can access the API through the proxy (bad). An attacker may be able to escalate this [SSRF](https://en.wikipedia.org/wiki/Server-side_request_forgery)-style access to remote code execution.\n\nThe mitmproxy and mitmdump tools are unaffected. Only mitmweb is affected. The `block_global` option, which is enabled by default, blocks connections originating from publicly-routable IP addresses in the proxy. The attacker needs to be in the same local network.\n\n### Patches\n\nThe vulnerability has been fixed in mitmproxy 11.1.2 and above.\n\n### Acknowledgements\n\nWe thank Stefan Grönke (@gronke) for reporting this vulnerability as part of a security audit by [Radically Open Security](https://www.radicallyopensecurity.com/). This audit was supported by the [NGI0 Entrust fund](https://nlnet.nl/entrust/) established by [NLnet](https://nlnet.nl/).\n\n### Timeline\n\n- **2025-01-14**: Received initial report. \n- **2025-01-14**: Verified report and confirmed receipt.\n- **2025-01-19**: Shared patch with researcher.\n- **2025-02-04**: Received final confirmation that patch is working.\n- **2025-02-05**: Published patched release and advisory.","aliases":["CVE-2025-23217"],"modified":"2026-03-30T14:41:24.447837Z","published":"2025-02-06T17:07:41Z","related":["CGA-q54r-72wv-gqv7"],"database_specific":{"severity":"HIGH","nvd_published_at":"2025-02-06T18:15:32Z","github_reviewed_at":"2025-02-06T17:07:41Z","github_reviewed":true,"cwe_ids":["CWE-288","CWE-441"]},"references":[{"type":"WEB","url":"https://github.com/mitmproxy/mitmproxy/security/advisories/GHSA-wg33-5h85-7q5p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23217"},{"type":"WEB","url":"https://github.com/mitmproxy/mitmproxy/commit/fa89055e196d953f11fd241e36ee37858993486a"},{"type":"WEB","url":"https://en.wikipedia.org/wiki/Server-side_request_forgery"},{"type":"PACKAGE","url":"https://github.com/mitmproxy/mitmproxy"},{"type":"WEB","url":"https://github.com/mitmproxy/mitmproxy/blob/main/CHANGELOG.md"},{"type":"WEB","url":"https://github.com/mitmproxy/mitmproxy/blob/main/CHANGELOG.md#06-february-2025-mitmproxy-1112"}],"affected":[{"package":{"name":"mitmproxy","ecosystem":"PyPI","purl":"pkg:pypi/mitmproxy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"11.1.2"}]}],"versions":["0.10","0.10.1","0.11","0.11.1","0.11.2","0.11.3","0.12.0","0.12.1","0.13","0.14.0","0.15","0.16","0.17","0.18.1","0.18.2","0.18.3","0.8","0.8.1","0.9","0.9.1","0.9.2","1.0.0","1.0.1","1.0.2","10.0.0","10.1.0","10.1.1","10.1.2","10.1.3","10.1.4","10.1.5","10.1.6","10.2.0","10.2.1","10.2.2","10.2.3","10.2.4","10.3.0","10.3.1","10.4.0","10.4.1","10.4.2","11.0.0","11.0.1","11.0.2","11.1.0","2.0.0","2.0.1","2.0.2","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","4.0.0","4.0.1","4.0.3","4.0.4","5.0.0","5.0.1","5.1.0","5.1.1","5.2","5.3.0","6.0.0","6.0.1","6.0.2","7.0.0","7.0.1","7.0.2","7.0.3","7.0.4","8.0.0","8.1.0","8.1.1","9.0.0","9.0.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/02/GHSA-wg33-5h85-7q5p/GHSA-wg33-5h85-7q5p.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"}]}