Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. urllib3
  4. ›
  5. CVE-2023-43804

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

October 2, 2023 (updated December 13, 2024)

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
  • security.netapp.com/advisory/ntap-20241213-0007
  • www.vicarius.io/vsociety/posts/cve-2023-43804-urllib3-vulnerability-3

Code Behaviors & Features

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 →

Affected versions

All versions before 1.26.17, all versions starting from 2.0.0 before 2.0.6

Fixed versions

  • 2.0.6
  • 1.26.17

Solution

Upgrade to versions 1.26.17, 2.0.6 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

pypi/urllib3/CVE-2023-43804.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:59 +0000.