{"id":"CVE-2021-39214","aliases":["CVE-2021-39214","GHSA-22gh-3r9q-xf38","PYSEC-2021-328"],"related":[],"kind":"vulnerability","state":"published","title":"Lacking Protection against HTTP Request Smuggling in mitmproxy","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIn mitmproxy 7.0.2 and below, a malicious client or server is able to perform [HTTP request smuggling](https://en.wikipedia.org/wiki/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 mitmproxy would only see one request, the target server would see multiple requests. A smuggled request is still captured as part of another request's body, but 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.\n\nUnless you use mitmproxy to protect an HTTP/1 service, no action is required.\n\n\n### Patches\n\nThe vulnerability has been fixed in mitmproxy 7.0.3 and above.\n\n\n### Acknowledgements\n\nWe thank João Sobral (@chinchila) for responsibly disclosing this vulnerability to the mitmproxy team.\n\n\n### Timeline\n\n- **2021-09-08**: Received initial report for mitmproxy <= 6.0.2.\n- **2021-09-08**: Requested clarification if 7.x is affected.\n- **2021-09-10**: Received additional details, 7.x situation still unclear.\n- **2021-09-13**: Internally determined that 7.x is also affected.\n- **2021-09-13**: Shared initial fix with researcher.\n- **2021-09-14**: Received confirmation that fix is working, but H2.TE/H2.CL should also be looked at.\n- **2021-09-14**: Shared revised fix that includes additional H2.TE mitigations.\n- **2021-09-14**: Received confirmation that revised fix is working.\n- **2021-09-16**: Completed internal patch review.\n- **2021-09-16**: Published patch release and advisory.","format":"markdown","source":"ghsa"},{"lang":"es","text":"mitmproxy es un proxy interactivo con capacidad de interceptación SSL/TLS. En mitmproxy versiones 7.0.2 y por debajo, un cliente o servidor malicioso es capaz de llevar a cabo ataques de contrabando de peticiones HTTP mediante mitmproxy. Esto significa que un cliente/servidor malicioso podría pasar de contrabando una petición/respuesta mediante mitmproxy como parte del cuerpo del mensaje HTTP de otra petición/respuesta. Mientras que una petición de contrabando sigue siendo capturada como parte del cuerpo de otra petición, no aparece en la lista de peticiones y no pasa por los ganchos de eventos habituales de mitmproxy, donde los usuarios pueden haber implementado comprobaciones de control de acceso personalizadas o saneo de entradas. A menos que se use mitmproxy para proteger un servicio HTTP/1, no es requerida ninguna acción. La vulnerabilidad ha sido corregida en mitmproxy versiones 7.0.3 y superiores","source":"nvd"}],"published":"2021-09-16T15:10:10.000Z","modified":"2026-07-08T06:27:31.868Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-444"],"affected":[{"ranges":[{"version":"< 7.0.3","status":"affected"}],"vendor":"mitmproxy","product":"mitmproxy","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.3"}],"ecosystem":"PyPI","package":"mitmproxy","purl":"pkg:pypi/mitmproxy","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"7.0.2"}],"vendor":"mitmproxy","product":"mitmproxy","cpe":"cpe:2.3:a:mitmproxy:mitmproxy:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.3"}],"ecosystem":"PyPI","package":"mitmproxy","purl":"pkg:pypi/mitmproxy","source":"pysec"}],"references":[{"url":"https://github.com/mitmproxy/mitmproxy/security/advisories/GHSA-22gh-3r9q-xf38","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39214","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mitmproxy/mitmproxy","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mitmproxy/PYSEC-2021-328.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-39214","url":"https://www.cve.org/CVERecord?id=CVE-2021-39214","licence":"CVE Terms of Use","modified":"2024-08-04T01:58:18.196Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-22gh-3r9q-xf38","url":"https://github.com/advisories/GHSA-22gh-3r9q-xf38","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:31.868Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-39214","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39214","licence":"Public domain","modified":"2026-06-17T04:03:19.593Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-328","url":"https://osv.dev/vulnerability/PYSEC-2021-328","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:33.964Z"}],"updatedAt":"2026-11-25T22:58:04.008Z","epss":{"score":0.01283,"percentile":0.70928,"date":"2026-12-01T12:00:22.000Z"}}