ADVISORIES

openEuler Security Advisory

OESA-2026-1791

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. Prior to version 2.33.0, 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. Standard usage of the Requests library is not affected by this vulnerability. Only applications that call extract_zipped_paths() directly are impacted. Starting in version 2.33.0, the library 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.(CVE-2026-25645)

Affected packages

EcosystemPackageAffected versions
openEuler:24.03-LTS-SP1python-requests
All versions before 2.31.0-5.oe2403sp1 (fixed in 2.31.0-5.oe2403sp1)
openEuler:24.03-LTS-SP2python-requests
All versions before 2.31.0-5.oe2403sp2 (fixed in 2.31.0-5.oe2403sp2)
openEuler:24.03-LTS-SP3python-requests
All versions before 2.31.0-5.oe2403sp3 (fixed in 2.31.0-5.oe2403sp3)
openEuler:20.03-LTS-SP4python-requests
All versions before 2.24.0-6.oe2003sp4 (fixed in 2.24.0-6.oe2003sp4)
openEuler:22.03-LTS-SP4python-requests
All versions before 2.26.0-12.oe2203sp4 (fixed in 2.26.0-12.oe2203sp4)
openEuler:24.03-LTSpython-requests
All versions before 2.31.0-5.oe2403 (fixed in 2.31.0-5.oe2403)

References