# CVE-2023-43804: \`Cookie\` HTTP header isn't stripped on cross-origin redirects

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.52% (percentile 75, 2026-11-26)
- **CWE:** CWE-200
- **Aliases:** GHSA-v845-jxx5-vc9f, PYSEC-2023-192
- **Published:** 2023-10-02T23:27:05.000Z
- **Modified:** 2026-09-10T03:49:24.753Z

## 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

## 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

- PyPI `urllib3`: affected \>= 2.0.0, \< 2.0.6; fixed 2.0.6, 1.26.17 (osv)
- urllib3: \>= 2.0.0, \< 2.0.6; \< 1.26.17 (cvelist)

## Mitigation

- Upgrade urllib3 to one of 2.0.6, 1.26.17 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/urllib3/urllib3/security/advisories/GHSA-v845-jxx5-vc9f>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-43804>
- patch: <https://github.com/urllib3/urllib3/commit/01220354d389cd05474713f8c982d05c9b17aafb>
- patch: <https://github.com/urllib3/urllib3/commit/644124ecd0b6e417c527191f866daa05a5a2056d>
- other: <https://lists.debian.org/debian-lts-announce/2023/10/msg00012.html>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I3PR7C6RJ6JUBQKIJ644DMIJSUP36VDY/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDAGZXYJ7H2G3SB47M453VQVNAWKAEJJ/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5/>
- other: <https://www.vicarius.io/vsociety/posts/cve-2023-43804-urllib3-vulnerability-3>
- other: <https://security.netapp.com/advisory/ntap-20241213-0007/>
- other: <https://lists.debian.org/debian-lts-announce/2024/12/msg00020.html>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2023-192.yaml>
- other: <https://github.com/urllib3/urllib3>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5F5CUBAN5XMEBVBZPHFITBLMJV5FIJJ5>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I3PR7C6RJ6JUBQKIJ644DMIJSUP36VDY>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDAGZXYJ7H2G3SB47M453VQVNAWKAEJJ>
- other: <https://security.netapp.com/advisory/ntap-20241213-0007>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-43804>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-v845-jxx5-vc9f> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2023-192> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-43804> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-43804>
