CVE-2023-43804
`Cookie` HTTP header isn't stripped on cross-origin redirects
Also known as GHSA-v845-jxx5-vc9f, PYSEC-2023-192
Mitigation
- Upgrade urllib3 to one of 2.0.6, 1.26.17 (or later in the same release line).
Who should check
- Projects that depend on PyPI package urllib3 (>= 2.0.0, < 2.0.6)
- Anyone running urllib3 >= 2.0.0, < 2.0.6; < 1.26.17
Vulnerability facts
- Affected
- urllib3 >= 2.0.0, < 2.0.6
- Fixed in
- 2.0.6, 1.26.17
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: High
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 1.52% chance of exploitation in 30 days (percentile 75, 2026-11-26)
- CWE
- CWE-200
- Modified
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 and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-43804. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-43804.md Affected: urllib3 >= 2.0.0, < 2.0.6 Fixed in: 2.0.6, 1.26.17 Steps: 1. Search this machine and project for urllib3 (PyPI), urllib3: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- https://lists.debian.org/debian-lts-announce/2023/10/msg00012.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I3PR7C6RJ6JUBQKIJ644DMIJSUP36VDY/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDAGZXYJ7H2G3SB47M453VQVNAWKAEJJ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5/
- https://www.vicarius.io/vsociety/posts/cve-2023-43804-urllib3-vulnerability-3
- https://security.netapp.com/advisory/ntap-20241213-0007/
- https://lists.debian.org/debian-lts-announce/2024/12/msg00020.html
- https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2023-192.yaml
- https://github.com/urllib3/urllib3
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I3PR7C6RJ6JUBQKIJ644DMIJSUP36VDY
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDAGZXYJ7H2G3SB47M453VQVNAWKAEJJ
- https://security.netapp.com/advisory/ntap-20241213-0007
FAQ
Is CVE-2023-43804 being exploited?
There is no confirmed exploitation: CVE-2023-43804 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.52% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-43804?
Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2023-43804?
urllib3 >= 2.0.0, < 2.0.6.
Is there a fix for CVE-2023-43804?
Yes. Fixed in 2.0.6, 1.26.17. Upgrade urllib3 to one of 2.0.6, 1.26.17 (or later in the same release line).
How do I check if I'm affected by CVE-2023-43804?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.