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.
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | requests | >= 2.1.0, < 2.6.0 | 2.6.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-2296
- https://github.com/kennethreitz/requests/commit/3bd8afbff29e50b38f889b2f688785a669b9aafc
- https://github.com/psf/requests/commit/3bd8afbff29e50b38f889b2f688785a669b9aafc
- https://github.com/psf/requests
- https://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2015-17.yaml
- https://warehouse.python.org/project/requests/2.6.0
- http://advisories.mageia.org/MGASA-2015-0120.html
- http://lists.fedoraproject.org/pipermail/package-announce/2015-March/153594.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:133
- http://www.openwall.com/lists/oss-security/2015/03/14/4
- http://www.openwall.com/lists/oss-security/2015/03/15/1
- http://www.ubuntu.com/usn/USN-2531-1
- https://warehouse.python.org/project/requests/2.6.0/
- https://github.com/advisories/GHSA-pg2w-x9wp-vw92
- Weakness (CWE)
-- Platform
- Python (PyPI)
- Package
requests- Disclosed
- 18.03.2015
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-pg2w-x9wp-vw92 - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2015-17 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: requests
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 8
- First → latest
- 10.2014 03.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 7
Disclosures per year
- 2017: 0
- 2018: 1
- 2019: 0
- 2020: 0
- 2021: 0
- 2022: 0
- 2023: 1
- 2024: 1
- 2025: 1
- 2026: 1
earlier: 3
-
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. this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.