MediumGHSA-pg2w-x9wp-vw92CVE-2015-2296PYSEC-2015-17

Python Requests Session Fixation

Published 13 May 2022 · Updated 1 Dec 2024

Is your project on an affected requests?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
>=2.1.0 <2.6.0
Fixed in
2.6.0
Update to the fixed version for your release line, for example:pip install 'requests>=2.6.0'

Details

The resolve_redirects function in sessions.py in requests 2.1.0 through 2.5.3 allows remote attackers to conduct session fixation attacks via a cookie without a host value in a redirect.

Is GHSA-pg2w-x9wp-vw92 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected requests, and gives you the command that fixes it.

More advisories for requests

  • MediumCVE-2026-25645Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function · 25 Mar 2026
  • MediumCVE-2024-47081Requests vulnerable to .netrc credentials leak via malicious URLs · 9 Jun 2025
  • MediumCVE-2024-35195Requests `Session` object does not verify requests after making first request with verify=False · 20 May 2024
  • MediumCVE-2023-32681Unintended leak of Proxy-Authorization header in requests · 22 May 2023
  • MediumCVE-2014-1829Exposure of Sensitive Information to an Unauthorized Actor in Requests · 17 May 2022
  • MediumCVE-2014-1830Exposure of Sensitive Information to an Unauthorized Actor in Requests · 14 May 2022
All 8 advisories for requests

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.