From: Daniel McGregor Date: Thu, 30 Apr 2026 19:51:20 +0000 (-0600) Subject: python3-requests: update to 2.33.1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f7d1a0885d7d6f2a533f7388ed5f5a35d6f99bc;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git python3-requests: update to 2.33.1 OE Core includes chardet 6.0, while requests warns for any version greater than or equal to 6.0. requests > 2.33 support chardet up to version 8, so import the new release. Signed-off-by: Daniel McGregor Signed-off-by: Mathieu Dubois-Briand --- diff --git a/meta/recipes-devtools/python/python3-requests/CVE-2026-25645.patch b/meta/recipes-devtools/python/python3-requests/CVE-2026-25645.patch deleted file mode 100644 index 3bebba6572..0000000000 --- a/meta/recipes-devtools/python/python3-requests/CVE-2026-25645.patch +++ /dev/null @@ -1,46 +0,0 @@ -From 66d21cb07bd6255b1280291c4fafb71803cdb3b7 Mon Sep 17 00:00:00 2001 -From: Nate Prewitt -Date: Wed, 25 Mar 2026 08:57:56 -0600 -Subject: [PATCH] Merge commit from fork - -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: CVE-2026-25645 -Upstream-Status: Backport [https://github.com/psf/requests/commit/66d21cb07bd6255b1280291c4fafb71803cdb3b7] -Signed-off-by: Ross Burton ---- - src/requests/utils.py | 13 +++++++------ - 1 file changed, 7 insertions(+), 6 deletions(-) - -diff --git a/src/requests/utils.py b/src/requests/utils.py -index d8803e6e91..54959bb8ab 100644 ---- a/src/requests/utils.py -+++ b/src/requests/utils.py -@@ -282,12 +282,13 @@ def extract_zipped_paths(path): - return path - - # we have a valid zip archive and a valid member of that archive -- tmp = tempfile.gettempdir() -- extracted_path = os.path.join(tmp, member.split("/")[-1]) -- if not os.path.exists(extracted_path): -- # use read + write to avoid the creating nested folders, we only want the file, avoids mkdir racing condition -- with atomic_open(extracted_path) as file_handler: -- file_handler.write(zip_file.read(member)) -+ suffix = os.path.splitext(member.split("/")[-1])[-1] -+ fd, extracted_path = tempfile.mkstemp(suffix=suffix) -+ try: -+ os.write(fd, zip_file.read(member)) -+ finally: -+ os.close(fd) -+ - return extracted_path - - diff --git a/meta/recipes-devtools/python/python3-requests_2.32.5.bb b/meta/recipes-devtools/python/python3-requests_2.33.1.bb similarity index 87% rename from meta/recipes-devtools/python/python3-requests_2.32.5.bb rename to meta/recipes-devtools/python/python3-requests_2.33.1.bb index 3477a5d83e..e9c6fe4e97 100644 --- a/meta/recipes-devtools/python/python3-requests_2.32.5.bb +++ b/meta/recipes-devtools/python/python3-requests_2.33.1.bb @@ -5,9 +5,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658" inherit pypi python_setuptools_build_meta -SRC_URI[sha256sum] = "dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf" +SRC_URI[sha256sum] = "18817f8c57c6263968bc123d237e3b8b08ac046f5456bd1e307ee8f4250d3517" -SRC_URI += "file://CVE-2026-25645.patch" SRC_URI:append:class-nativesdk = " file://environment.d-python3-requests.sh" do_install:append:class-nativesdk() { @@ -35,3 +34,4 @@ BBCLASSEXTEND = "native nativesdk" CVE_STATUS[CVE-2024-35195] = "fixed-version: fixed since 2.32.0" CVE_STATUS[CVE-2024-47081] = "fixed-version: fixed since 2.32.4" +CVE_STATUS[CVE-2026-25645] = "fixed-version: fixed since 2.33.0"