openEuler Security Advisory
OESA-2025-1674
python-requests security update
Details
Requests is an HTTP library, written in Python, as an alternative to Python's builtin urllib2 which requires work (even method overrides) to perform basic tasks. Features of Requests: - GET, HEAD, POST, PUT, DELETE Requests: + HTTP Header Request Attachment. + Data/Params Request Attachment. + Multipart File Uploads. + CookieJar Support. + Redirection History. + Redirection Recursion Urllib Fix. + Automatic Decompression of GZipped Content. + Unicode URL Support. - Authentication: + URL + HTTP Auth Registry.
Security Fix(es):
Requests is a HTTP library. 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. Users should upgrade to version 2.32.4 to receive a fix. For older versions of Requests, use of the .netrc file can be disabled with trust_env=False on one's Requests Session.(CVE-2024-47081)
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| openEuler:22.03-LTS-SP4 | python-requests | All versions before 2.26.0-10.oe2203sp4 (fixed in 2.26.0-10.oe2203sp4) |
| openEuler:24.03-LTS | python-requests | All versions before 2.31.0-3.oe2403sp1 (fixed in 2.31.0-3.oe2403sp1) |
| openEuler:24.03-LTS-SP1 | python-requests | All versions before 2.31.0-3.oe2403sp1 (fixed in 2.31.0-3.oe2403sp1) |
| openEuler:20.03-LTS-SP4 | python-requests | All versions before 2.24.0-4.oe2003sp4 (fixed in 2.24.0-4.oe2003sp4) |
| openEuler:22.03-LTS-SP3 | python-requests | All versions before 2.26.0-10.oe2203sp3 (fixed in 2.26.0-10.oe2203sp3) |