{"id":"CVE-2023-43804","published":"2023-10-04T16:01:50Z","modified":"2025-11-03T21:49:44Z","title":"`Cookie` HTTP header isn't stripped on cross-origin redirects","vendor":"urllib3","product":"urllib3","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0136,"percentile":0.72414,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/urllib3/urllib3/security/advisories/GHSA-v845-jxx5-vc9f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/urllib3/urllib3/commit/01220354d389cd05474713f8c982d05c9b17aafb","tags":["x_refsource_MISC"]},{"url":"https://github.com/urllib3/urllib3/commit/644124ecd0b6e417c527191f866daa05a5a2056d","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/10/msg00012.html","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I3PR7C6RJ6JUBQKIJ644DMIJSUP36VDY/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDAGZXYJ7H2G3SB47M453VQVNAWKAEJJ/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5/","tags":[]},{"url":"https://www.vicarius.io/vsociety/posts/cve-2023-43804-urllib3-vulnerability-3","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241213-0007/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00020.html","tags":[]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":14.48},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"urllib3","affectedVersions":[{"vendor":"urllib3","product":"urllib3","versions":[">= 2.0.0, < 2.0.6","< 1.26.17"]}],"affected":[{"ecosystem":"PyPI","package":"urllib3","vulnerableRanges":[">=2.0.0, <2.0.6","<1.26.17"],"patched":["2.0.6","1.26.17"],"from":["GHSA-v845-jxx5-vc9f","PYSEC-2023-192"],"provenance":"source"}],"summary":{"text":"The urllib3 HTTP client library for Python fails to strip a user-specified Cookie header when following HTTP redirects to a different origin, leaking that header's contents to the new origin. An attacker positioned to serve or redirect the client to a cross-origin location can capture the cookie data, but only when the application sets a Cookie header manually and has not explicitly disabled redirect following.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:25Z"},"euvd":{"id":"EUVD-2023-0252","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-urllib3-cve-2023-43804","children":[{"from":"CVE-2023-43804","to":"CVE-2024-37891","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/urllib3/util/retry.py"],"commits":["https://github.com/urllib3/urllib3/commit/01220354d389cd05474713f8c982d05c9b17aafb","https://github.com/urllib3/urllib3/commit/644124ecd0b6e417c527191f866daa05a5a2056d","https://github.com/urllib3/urllib3/commit/accff72ecc2f6cf5a76d9570198a93ac7c90270e","https://github.com/urllib3/urllib3/commit/40b6d1605814dd1db0a46e202d6e56f2e4c9a468"],"basis":"shared function","functions":["Retry"]}]}],"packageHistory":[{"cve":"CVE-2020-26137","published":"2020-09-29","fixed":"1.25.9","kev":false},{"cve":"CVE-2021-28363","published":"2021-03-15","fixed":"1.26.4","kev":false},{"cve":"CVE-2021-33503","published":"2021-06-29","fixed":"1.26.5","kev":false},{"cve":"CVE-2023-43804","published":"2023-10-04","fixed":"2.0.6","kev":false},{"cve":"CVE-2023-45803","published":"2023-10-17","fixed":"2.0.7","kev":false,"link":{"from":"CVE-2023-43804","to":"CVE-2023-45803","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:urllib3","fromFixed":"2.0.6","toFixed":"2.0.7","daysApart":13},{"kind":"version-step","provenance":"source","package":"PyPI:urllib3","fromFixed":"1.26.17","toFixed":"1.26.18","daysApart":13}]}},{"cve":"CVE-2024-37891","published":"2024-06-17","fixed":"2.2.2","kev":false},{"cve":"CVE-2025-50181","published":"2025-06-19","fixed":"2.5.0","kev":false}],"package":"PyPI:urllib3"}}