CVE-2023-43804
MEDIUM5.9EPSS 0.95%`Cookie` HTTP header isn't stripped on cross-origin redirects
Published: 10/2/2023Modified: 4/28/2026
Description
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.
Affected packages (5)
- Alpine/py3-urllib3from 0, < 1.26.17-r0
- Debian/python-urllib3from 0, < 1.26.5-1~exp1+deb11u1
- Debian/python-urllib3from 0, < 1.26.5-1~exp1+deb11u1
- PyPI/urllib3>= 2.0.0, < 2.0.6
- PyPI/urllib3from 0, < 644124ecd0b6e417c527191f866daa05a5a2056d, < 01220354d389cd05474713f8c982d05c9b17aafb | >= 2.0.0, < 2.0.6, from 0, < 1.26.17
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | MEDIUM5.9 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N |
References (15)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2023-43804
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2023-43804
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-43804
- PATCHhttps://github.com/urllib3/urllib3
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2023-192.yaml
- WEBhttps://github.com/urllib3/urllib3/commit/01220354d389cd05474713f8c982d05c9b17aafb
- WEBhttps://github.com/urllib3/urllib3/commit/644124ecd0b6e417c527191f866daa05a5a2056d
- WEBhttps://github.com/urllib3/urllib3/security/advisories/GHSA-v845-jxx5-vc9f
- WEBhttps://lists.debian.org/debian-lts-announce/2023/10/msg00012.html
- WEBhttps://lists.debian.org/debian-lts-announce/2024/12/msg00020.html
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/I3PR7C6RJ6JUBQKIJ644DMIJSUP36VDY
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/NDAGZXYJ7H2G3SB47M453VQVNAWKAEJJ
- WEBhttps://security.netapp.com/advisory/ntap-20241213-0007
- WEBhttps://www.vicarius.io/vsociety/posts/cve-2023-43804-urllib3-vulnerability-3