Skip to content
OpenAdvisories
High · 8.1 Public exploit CVE-2021-39214 EUVD-2021-0135GHSA-22gh-3r9q-xf38PYSEC-2021-328

Lacking Protection against HTTP Request Smuggling in mitmproxy

Published Sep 16, 2021 · Updated Aug 4, 2024 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
mitmproxy mitmproxy < 7.0.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mitmproxy 8.1.1-1 —
Debian 12 mitmproxy 8.1.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 mitmproxy No fix yet —
Ubuntu 26.04 LTS mitmproxy No fix yet —
Ubuntu 25.10 mitmproxy No fix yet —
Ubuntu 24.04 LTS mitmproxy No fix yet —
Ubuntu 22.04 LTS mitmproxy No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS mitmproxy No fix yet —
Ubuntu 18.04 LTS mitmproxy No fix yet —
Ubuntu 16.04 LTS mitmproxy No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 python-mitmproxy 3.0.4-bp155.3.3.1 openSUSE-SU-2023:0233-1
SUSE Package Hub 15 SP4 python-mitmproxy 3.0.4-bp154.2.3.1 openSUSE-SU-2023:0232-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 python-mitmproxy 3.0.4-bp155.3.3.1 openSUSE-SU-2023:0233-1
openSUSE Leap 15.4 python-mitmproxy 3.0.4-bp154.2.3.1 openSUSE-SU-2023:0232-1
ReleasePackageFixed inAdvisory
Alpine v3.24 mitmproxy 7.0.3-r0 —
Alpine v3.23 mitmproxy 7.0.3-r0 —
Alpine v3.22 mitmproxy 7.0.3-r0 —
Alpine v3.21 mitmproxy 7.0.3-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • CyberCTF/secdevlabs-golden-hat ★ 1 · Oct 8, 2026

    secDevLabs Golden Hat Society: mitmproxy 5.3.0 request smuggling, CVE-2021-39214 (OWASP A06), run with Isoloom

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mitmproxy < 7.0.3 7.0.3 GHSA-22gh-3r9q-xf38

Advisories 2

References