Live threats

All CVEs / Mitmproxy

CVE-2021-39214Mitmproxy

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mitmproxy.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mitmproxymitmproxy≤ 7.0.2

Official sources

References

Links published by the sources. Open them with care.