High

Mitmweb API Authentication Bypass Using Proxy Server

  • Disclosed: 06.02.2025
  • Updated: 11.10.2026 15:17

Impact

In 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-style access to remote code execution.

The 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.

Patches

The vulnerability has been fixed in mitmproxy 11.1.2 and above.

Acknowledgements

We thank Stefan Grönke (@gronke) for reporting this vulnerability as part of a security audit by Radically Open Security. This audit was supported by the NGI0 Entrust fund established by NLnet.

Timeline

  • 2025-01-14: Received initial report.
  • 2025-01-14: Verified report and confirmed receipt.
  • 2025-01-19: Shared patch with researcher.
  • 2025-02-04: Received final confirmation that patch is working.
  • 2025-02-05: Published patched release and advisory.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) mitmproxy < 11.1.2 11.1.2

References

CVSS score -
CVSS vector
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
Weakness (CWE)
CWE-288, CWE-441
Platform
Python (PyPI)
Package
mitmproxy
Disclosed
06.02.2025
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-1630 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-wg33-5h85-7q5p - CC BY 4.0

Vulnerability history: mitmproxy

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
6
First → latest
07.2018 04.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 3
  • High 1
  • Medium 2

Disclosures per year

  1. 2018: 1
  2. 2019: 0
  3. 2020: 0
  4. 2021: 1
  5. 2022: 1
  6. 2023: 0
  7. 2024: 0
  8. 2025: 2
  9. 2026: 1
  1. Medium · 4.8 CVE-2026-40606 < 12.2.2 12.2.2
  2. Medium ghsa-63cx-g855-hvv4 < 12.1.2 12.1.2
  3. Mitmweb API Authentication Bypass Using Proxy Server this entry
    High CVE-2025-23217 < 11.1.2 11.1.2
  4. Critical · 9.8 CVE-2022-24766 < 8.0.0 8.0.0
  5. Critical · 8.1 CVE-2021-39214 < 7.0.3 7.0.3
  6. Critical · 8.8 CVE-2018-14505 < 4.0.4 4.0.4

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.