CVE-2021-39214Mitmproxy
Critical 9.8 No auth needed
Follow: this CVE · Mitmproxy · Mitmproxy We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Sep 16, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-444
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
mitmproxy is an interactive, SSL/TLS-capable intercepting proxy. In mitmproxy 7.0.2 and below, a malicious client or server is able to perform HTTP request smuggling attacks through mitmproxy. This means that a malicious client/server could smuggle a request/response through mitmproxy as part of another request/response's HTTP message body. While a smuggled request is still captured as part of another request's body, it does not appear in the request list and does not go through the usual mitmproxy event hooks, where users may have implemented custom access control checks or input sanitization. Unless one uses mitmproxy to protect an HTTP/1 service, no action is required. The vulnerability has been fixed in mitmproxy 7.0.3 and above.
What to do
- Apply the vendor's security update for Mitmproxy.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mitmproxy |
< 7.0.3 |
7.0.3 |
pip install "mitmproxy>=7.0.3" |
| PyPI | mitmproxy |
< 7.0.3 |
7.0.3 |
pip install "mitmproxy>=7.0.3" |
Per OSV / GitHub Advisories (GHSA-22gh-3r9q-xf38, PYSEC-2021-328). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mitmproxy | mitmproxy | ≤ 7.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory