Python/requests/1.0.0
Python HTTP for Humans.
https://pypi.org/project/requests
Apache-2.0
6 Security Vulnerabilities
Exposure of Sensitive Information to an Unauthorized Actor in Requests
- https://nvd.nist.gov/vuln/detail/CVE-2014-1830
- https://github.com/kennethreitz/requests/issues/1885
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733108
- http://advisories.mageia.org/MGASA-2014-0409.html
- http://lists.opensuse.org/opensuse-updates/2016-01/msg00095.html
- http://www.debian.org/security/2015/dsa-3146
- https://github.com/advisories/GHSA-652x-xj99-gmcc
- https://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2014-14.yaml
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:133
- https://github.com/psf/requests/issues/1885
- https://web.archive.org/web/20150523055216/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:133/?name=MDVSA-2015:133
Requests (aka python-requests) before 2.3.0 allows remote servers to obtain sensitive information by reading the Proxy-Authorization header in a redirected request.
Requests vulnerable to .netrc credentials leak via malicious URLs
- https://github.com/psf/requests/security/advisories/GHSA-9hjg-9r4m-mvj7
- https://nvd.nist.gov/vuln/detail/CVE-2024-47081
- https://github.com/psf/requests/pull/6965
- https://github.com/psf/requests/commit/96ba401c1296ab1dda74a2365ef36d88f7d144ef
- https://requests.readthedocs.io/en/latest/api/#requests.Session.trust_env
- https://seclists.org/fulldisclosure/2025/Jun/2
- http://seclists.org/fulldisclosure/2025/Jun/2
- http://www.openwall.com/lists/oss-security/2025/06/03/11
- http://www.openwall.com/lists/oss-security/2025/06/03/9
- http://www.openwall.com/lists/oss-security/2025/06/04/1
- http://www.openwall.com/lists/oss-security/2025/06/04/6
- https://github.com/advisories/GHSA-9hjg-9r4m-mvj7
Impact
Due to a URL parsing issue, Requests releases prior to 2.32.4 may leak .netrc credentials to third parties for specific maliciously-crafted URLs.
Workarounds
For older versions of Requests, use of the .netrc file can be disabled with trust_env=False on your Requests Session (docs).
References
https://github.com/psf/requests/pull/6965 https://seclists.org/fulldisclosure/2025/Jun/2
Requests `Session` object does not verify requests after making first request with verify=False
- https://github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56
- https://github.com/psf/requests/pull/6655
- https://github.com/psf/requests/commit/a58d7f2ffb4d00b46dca2d70a3932a0b37e22fac
- https://nvd.nist.gov/vuln/detail/CVE-2024-35195
- https://github.com/advisories/GHSA-9wx4-h78v-vm56
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IYLSNK5TL46Q6XPRVMHVWS63MVJQOK4Q
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N7WP6EYDSUOCOJYHDK5NX43PYZ4SNHGZ
When using a requests.Session, if the first request to a given origin is made with verify=False, TLS certificate verification may remain disabled for all subsequent requests to that origin, even if verify=True is explicitly specified later.
This occurs because the underlying connection is reused from the session's connection pool, causing the initial TLS verification setting to persist for the lifetime of the pooled connection. As a result, applications may unintentionally send requests without certificate verification, leading to potential man-in-the-middle attacks and compromised confidentiality or integrity.
This behavior affects versions of requests prior to 2.32.0.
Exposure of Sensitive Information to an Unauthorized Actor in Requests
- https://nvd.nist.gov/vuln/detail/CVE-2014-1829
- https://github.com/kennethreitz/requests/issues/1885
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733108
- http://advisories.mageia.org/MGASA-2014-0409.html
- http://www.debian.org/security/2015/dsa-3146
- http://www.ubuntu.com/usn/USN-2382-1
- https://github.com/advisories/GHSA-cfj3-7x9c-4p3h
- https://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2014-13.yaml
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:133
- https://github.com/psf/requests/issues/1885
- https://web.archive.org/web/20150523055216/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:133/?name=MDVSA-2015:133
Requests (aka python-requests) before 2.3.0 allows remote servers to obtain a netrc password by reading the Authorization header in a redirected request.
Requests has Insecure Temp File Reuse in its extract_zipped_paths() utility function
- https://github.com/psf/requests/security/advisories/GHSA-gc5v-m9x4-r6x2
- https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7
- https://github.com/psf/requests/releases/tag/v2.33.0
- https://github.com/advisories/GHSA-gc5v-m9x4-r6x2
- https://nvd.nist.gov/vuln/detail/CVE-2026-25645
Impact
The requests.utils.extract_zipped_paths() utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp directory could pre-create a malicious file that would be loaded in place of the legitimate one.
Affected usages
Standard usage of the Requests library is not affected by this vulnerability. Only applications that call extract_zipped_paths() directly are impacted.
Remediation
Upgrade to at least Requests 2.33.0, where the library now extracts files to a non-deterministic location.
If developers are unable to upgrade, they can set TMPDIR in their environment to a directory with restricted write access.
Insufficiently Protected Credentials in Requests
- https://nvd.nist.gov/vuln/detail/CVE-2018-18074
- https://github.com/advisories/GHSA-x84v-xcm2-53pg
- https://github.com/requests/requests/issues/4716
- https://github.com/requests/requests/pull/4718
- https://github.com/requests/requests/commit/c45d7c49ea75133e52ab22a8e9e13173938e36ff
- https://access.redhat.com/errata/RHSA-2019:2035
- https://bugs.debian.org/910766
- https://usn.ubuntu.com/3790-1/
- https://usn.ubuntu.com/3790-2/
- http://docs.python-requests.org/en/master/community/updates/#release-and-version-history
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00024.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2018-28.yaml
- https://usn.ubuntu.com/3790-1
- https://usn.ubuntu.com/3790-2
The Requests package through 2.19.1 before 2018-09-14 for Python sends an HTTP Authorization header to an http URI upon receiving a same-hostname https-to-http redirect, which makes it easier for remote attackers to discover credentials by sniffing the network.
163 Other Versions
| Version | License | Security | Released | |
|---|---|---|---|---|
| 0.4.1 | ISC | 6 | 2011-05-25 - 18:54 | almost 15 years |
| 0.4.0 | ISC | 6 | 2011-05-15 - 05:58 | about 15 years |
| 0.3.4 | ISC | 6 | 2011-05-14 - 20:30 | about 15 years |
| 0.3.3 | ISC | 6 | 2011-05-12 - 10:03 | about 15 years |
| 0.3.2 | ISC | 6 | 2011-04-15 - 23:30 | about 15 years |
| 0.3.1 | ISC | 6 | 2011-04-01 - 20:55 | about 15 years |
| 0.3.0 | ISC | 6 | 2011-02-25 - 14:58 | about 15 years |
| 0.2.4 | ISC | 6 | 2011-02-19 - 07:03 | about 15 years |
| 0.2.3 | ISC | 6 | 2011-02-15 - 15:47 | over 15 years |
| 0.2.2 | ISC | 6 | 2011-02-14 - 18:58 | over 15 years |
| 0.2.1 | ISC | 6 | 2011-02-14 - 16:38 | over 15 years |
| 0.2.0 | ISC | 6 | 2011-02-14 - 08:49 | over 15 years |
| 0.0.1 | ISC AND MIT | 6 | 1970-01-01 - 00:00 | over 56 years |
