CVE-2023-43804: `Cookie` HTTP header isn't stripped on cross-origin redirects
(updated )
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.
Users 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.
References
- github.com/advisories/GHSA-v845-jxx5-vc9f
- github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2023-192.yaml
- github.com/urllib3/urllib3
- github.com/urllib3/urllib3/commit/01220354d389cd05474713f8c982d05c9b17aafb
- github.com/urllib3/urllib3/commit/644124ecd0b6e417c527191f866daa05a5a2056d
- github.com/urllib3/urllib3/security/advisories/GHSA-v845-jxx5-vc9f
- lists.debian.org/debian-lts-announce/2023/10/msg00012.html
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I3PR7C6RJ6JUBQKIJ644DMIJSUP36VDY
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDAGZXYJ7H2G3SB47M453VQVNAWKAEJJ
- nvd.nist.gov/vuln/detail/CVE-2023-43804
Detect and mitigate CVE-2023-43804 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →