{"id":"CVE-2023-43804","aliases":["CVE-2023-43804","GHSA-v845-jxx5-vc9f","PYSEC-2023-192"],"related":[],"kind":"vulnerability","state":"published","title":"`Cookie` HTTP header isn't stripped on cross-origin redirects","summary":"urllib3 is a user-friendly HTTP client library for Python. urllib3 doesn't treat the `Cookie` HTTP header special or provide any helpers for managing cookies over HTTP, that is the responsibility of the user. However, it is possible for a user to specify a `Cookie` header and unknowingly leak information via HTTP redirects to a different origin if that user doesn't disable redirects explicitly. This issue has been patched in urllib3 version 1.26.17 or 2.0.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"urllib3 is a user-friendly HTTP client library for Python. urllib3 doesn't treat the `Cookie` HTTP header special or provide any helpers for managing cookies over HTTP, that is the responsibility of the user. However, it is possible for a user to specify a `Cookie` header and unknowingly leak information via HTTP redirects to a different origin if that user doesn't disable redirects explicitly. This issue has been patched in urllib3 version 1.26.17 or 2.0.5.","source":"cvelist"},{"lang":"en","text":"urllib3 doesn't treat the `Cookie` HTTP header special or provide any helpers for managing cookies over HTTP, that is the responsibility of the user. However, it is possible for a user to specify a `Cookie` header and unknowingly leak information via HTTP redirects to a different origin if that user doesn't disable redirects explicitly.\n\nUsers **must** handle redirects themselves instead of relying on urllib3's automatic redirects to achieve safe processing of the `Cookie` header, thus we decided to strip the header by default in order to further protect users who aren't using the correct approach.\n\n## Affected usages\n\nWe believe the number of usages affected by this advisory is low. It requires all of the following to be true to be exploited:\n\n* Using an affected version of urllib3 (patched in v1.26.17 and v2.0.6)\n* Using the `Cookie` header on requests, which is mostly typical for impersonating a browser.\n* Not disabling HTTP redirects\n* Either not using HTTPS or for the origin server to redirect to a malicious origin.\n\n## Remediation\n\n* Upgrading to at least urllib3 v1.26.17 or v2.0.6\n* Disabling HTTP redirects using `redirects=False` when sending requests.\n* Not using the `Cookie` header.","format":"markdown","source":"ghsa"},{"lang":"es","text":"urllib3 es una librería cliente HTTP fácil de usar para Python. urllib3 no trata el encabezado HTTP \"Cookie\" de manera especial ni proporciona ayuda para administrar las cookies a través de HTTP, eso es responsabilidad del usuario. Sin embargo, es posible que un usuario especifique un encabezado \"Cookie\" y, sin saberlo, filtre información a través de redireccionamientos HTTP a un origen diferente si ese usuario no deshabilita los redireccionamientos explícitamente. Este problema se solucionó en urllib3 versión 1.26.17 o 2.0.5.","source":"nvd"}],"published":"2023-10-02T23:27:05.000Z","modified":"2026-09-10T03:49:24.753Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","score":5.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":">= 2.0.0, < 2.0.6","status":"affected"},{"version":"< 1.26.17","status":"affected"}],"vendor":"urllib3","product":"urllib3","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.6"}],"ecosystem":"PyPI","package":"urllib3","purl":"pkg:pypi/urllib3","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.26.17"}],"ecosystem":"PyPI","package":"urllib3","purl":"pkg:pypi/urllib3","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.26.17"},{"status":"affected","introduced":"2.0.0","fixed":"2.0.6"}],"vendor":"python","product":"urllib3","cpe":"cpe:2.3:a:python:urllib3:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"37"},{"status":"affected","version":"38"},{"status":"affected","version":"39"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"644124ecd0b6e417c527191f866daa05a5a2056d"},{"type":"git","status":"affected","fixed":"01220354d389cd05474713f8c982d05c9b17aafb"},{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.6"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.26.17"}],"ecosystem":"PyPI","package":"urllib3","purl":"pkg:pypi/urllib3","repo":"https://github.com/urllib3/urllib3","source":"pysec"}],"references":[{"url":"https://github.com/urllib3/urllib3/security/advisories/GHSA-v845-jxx5-vc9f","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/urllib3/urllib3/commit/01220354d389cd05474713f8c982d05c9b17aafb","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/urllib3/urllib3/commit/644124ecd0b6e417c527191f866daa05a5a2056d","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/10/msg00012.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I3PR7C6RJ6JUBQKIJ644DMIJSUP36VDY/","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDAGZXYJ7H2G3SB47M453VQVNAWKAEJJ/","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5/","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.vicarius.io/vsociety/posts/cve-2023-43804-urllib3-vulnerability-3","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20241213-0007/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00020.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43804","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2023-192.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/urllib3/urllib3","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I3PR7C6RJ6JUBQKIJ644DMIJSUP36VDY","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDAGZXYJ7H2G3SB47M453VQVNAWKAEJJ","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20241213-0007","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-43804","url":"https://www.cve.org/CVERecord?id=CVE-2023-43804","licence":"CVE Terms of Use","modified":"2025-11-03T21:49:44.074Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v845-jxx5-vc9f","url":"https://github.com/advisories/GHSA-v845-jxx5-vc9f","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:24.753Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-43804","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43804","licence":"Public domain","modified":"2026-06-17T06:26:29.040Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-192","url":"https://osv.dev/vulnerability/PYSEC-2023-192","licence":"CC-BY-4.0","modified":"2023-11-08T04:13:33.452Z"}],"updatedAt":"2026-11-25T22:58:28.459Z","epss":{"score":0.0136,"percentile":0.7254,"date":"2026-12-01T12:00:22.000Z"}}