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?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
requestsPyPI
- 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
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2015-2296
- Linkgithub.com/kennethreitz/requests/commit/3bd8afbff29e50b38f889b2f688785a669b9aafc
- Linkgithub.com/psf/requests/commit/3bd8afbff29e50b38f889b2f688785a669b9aafc
- Packagegithub.com/psf/requests
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2015-17.yaml
- Linkwarehouse.python.org/project/requests/2.6.0
- Linkadvisories.mageia.org/MGASA-2015-0120.html
- Linklists.fedoraproject.org/pipermail/package-announce/2015-March/153594.html
- Linkwww.mandriva.com/security/advisories?name=MDVSA-2015:133
- Linkwww.openwall.com/lists/oss-security/2015/03/14/4
- Linkwww.openwall.com/lists/oss-security/2015/03/15/1
- Linkwww.ubuntu.com/usn/USN-2531-1
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.