Skip to content

Commit f4ee0e9

Browse files
[MEDIUM] Upgrade python-wheel to 0.46.3 for CVE-2026-24049 (#15898)
Co-authored-by: Kanishk Bansal <103916909+Kanishk-Bansal@users.noreply.github.com>
1 parent 59a5db0 commit f4ee0e9

6 files changed

Lines changed: 55 additions & 9 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
From c35c77748f7ed54c0deee7dcf874a7acb4856008 Mon Sep 17 00:00:00 2001
2+
From: Archana Shettigar <v-shettigara@microsoft.com>
3+
Date: Tue, 3 Feb 2026 12:59:16 +0530
4+
Subject: [PATCH] Use vendored packaging to canonicalize requirements
5+
Upstream Reference Patch: https://github.com/pypa/wheel/commit/4ec2ae368bb30b0a92617824f833ae615aca18cf
6+
7+
---
8+
tests/test_metadata.py | 6 +++---
9+
1 file changed, 3 insertions(+), 3 deletions(-)
10+
11+
diff --git a/tests/test_metadata.py b/tests/test_metadata.py
12+
index db0ab0c..3719c6f 100644
13+
--- a/tests/test_metadata.py
14+
+++ b/tests/test_metadata.py
15+
@@ -12,9 +12,9 @@ def test_pkginfo_to_metadata(tmp_path: Path) -> None:
16+
("Metadata-Version", "2.1"),
17+
("Name", "spam"),
18+
("Version", "0.1"),
19+
- ("Requires-Dist", "pip @ https://github.com/pypa/pip/archive/1.3.1.zip"),
20+
+ ("Requires-Dist", "pip@ https://github.com/pypa/pip/archive/1.3.1.zip"),
21+
("Requires-Dist", 'pywin32; sys_platform == "win32"'),
22+
- ("Requires-Dist", 'foo @ http://host/foo.zip ; sys_platform == "win32"'),
23+
+ ("Requires-Dist", 'foo@ http://host/foo.zip ; sys_platform == "win32"'),
24+
("Provides-Extra", "signatures"),
25+
(
26+
"Requires-Dist",
27+
@@ -22,7 +22,7 @@ def test_pkginfo_to_metadata(tmp_path: Path) -> None:
28+
),
29+
("Provides-Extra", "empty_extra"),
30+
("Provides-Extra", "extra"),
31+
- ("Requires-Dist", 'bar @ http://host/bar.zip ; extra == "extra"'),
32+
+ ("Requires-Dist", 'bar@ http://host/bar.zip ; extra == "extra"'),
33+
("Provides-Extra", "faster-signatures"),
34+
("Requires-Dist", 'ed25519ll; extra == "faster-signatures"'),
35+
("Provides-Extra", "rest"),
36+
--
37+
2.45.4
38+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"wheel-0.43.0.tar.gz": "23060d7cc8afafc2930554624b4bae7d58031830672048622c926675ab91e3b0"
3+
"wheel-0.46.3.tar.gz": "36327d3bba035d9c3509421a42b59914fe9aab79d894b21cb9be17353abf6d2c"
44
}
5-
}
5+
}

SPECS/python-wheel/python-wheel.spec

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# The function of bootstrap is that it disables the wheel subpackage
22
%bcond_with bootstrap
3+
%global pypi_name wheel
34
%bcond main_python 1
45
Summary: Built-package format for Python
56
Name: python-%{pypi_name}
6-
Version: 0.43.0
7+
Version: 0.46.3
78
Release: 1%{?dist}
89
License: MIT
910
Vendor: Microsoft Corporation
1011
Distribution: Azure Linux
1112
URL: https://github.com/pypa/wheel
1213
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
14+
Patch0: Use-vendored-packaging-to-canonicalize-requirements.patch
1315
%global pypi_name wheel
1416
%global python_wheel_name %{pypi_name}-%{version}-py3-none-any.whl
1517
%global python_wheeldir %{_datadir}/python-wheels
@@ -58,6 +60,9 @@ A Python wheel of wheel to use with virtualenv.
5860
%prep
5961
%autosetup -n %{pypi_name}-%{version} -p1
6062

63+
# flit_core expects [project].license to be a table/dict, not a string
64+
sed -i 's/^license = "MIT"$/license = { text = "MIT" }/' pyproject.toml
65+
6166
%generate_buildrequires
6267
%pyproject_buildrequires
6368

@@ -115,6 +120,9 @@ pip3 install iniconfig
115120
%endif
116121

117122
%changelog
123+
* Wed Jan 28 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 0.46.3-1
124+
- Updated to 0.46.3 to fix CVE-2026-24049
125+
118126
* Fri May 10 2024 Betty Lakes <bettylakes@microsoft.com> - 0.43.0-1
119127
- Updated to 0.43.0
120128

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25573,8 +25573,8 @@
2557325573
"type": "other",
2557425574
"other": {
2557525575
"name": "python-wheel",
25576-
"version": "0.43.0",
25577-
"downloadUrl": "https://github.com/pypa/wheel/archive/0.43.0/wheel-0.43.0.tar.gz"
25576+
"version": "0.46.3",
25577+
"downloadUrl": "https://github.com/pypa/wheel/archive/0.46.3/wheel-0.46.3.tar.gz"
2557825578
}
2557925579
}
2558025580
},

toolkit/resources/manifests/package/toolchain_aarch64.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ procps-ng-lang-4.0.4-1.azl3.aarch64.rpm
530530
pyproject-rpm-macros-1.12.0-2.azl3.noarch.rpm
531531
pyproject-srpm-macros-1.12.0-2.azl3.noarch.rpm
532532
python-markupsafe-debuginfo-2.1.3-1.azl3.aarch64.rpm
533-
python-wheel-wheel-0.43.0-1.azl3.noarch.rpm
533+
python-wheel-wheel-0.46.3-1.azl3.noarch.rpm
534534
python3-3.12.9-9.azl3.aarch64.rpm
535535
python3-audit-3.1.2-1.azl3.aarch64.rpm
536536
python3-cracklib-2.9.11-1.azl3.aarch64.rpm
@@ -557,7 +557,7 @@ python3-rpm-generators-14-11.azl3.noarch.rpm
557557
python3-setuptools-69.0.3-5.azl3.noarch.rpm
558558
python3-test-3.12.9-9.azl3.aarch64.rpm
559559
python3-tools-3.12.9-9.azl3.aarch64.rpm
560-
python3-wheel-0.43.0-1.azl3.noarch.rpm
560+
python3-wheel-0.46.3-1.azl3.noarch.rpm
561561
readline-8.2-2.azl3.aarch64.rpm
562562
readline-debuginfo-8.2-2.azl3.aarch64.rpm
563563
readline-devel-8.2-2.azl3.aarch64.rpm

toolkit/resources/manifests/package/toolchain_x86_64.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ procps-ng-lang-4.0.4-1.azl3.x86_64.rpm
538538
pyproject-rpm-macros-1.12.0-2.azl3.noarch.rpm
539539
pyproject-srpm-macros-1.12.0-2.azl3.noarch.rpm
540540
python-markupsafe-debuginfo-2.1.3-1.azl3.x86_64.rpm
541-
python-wheel-wheel-0.43.0-1.azl3.noarch.rpm
541+
python-wheel-wheel-0.46.3-1.azl3.noarch.rpm
542542
python3-3.12.9-9.azl3.x86_64.rpm
543543
python3-audit-3.1.2-1.azl3.x86_64.rpm
544544
python3-cracklib-2.9.11-1.azl3.x86_64.rpm
@@ -565,7 +565,7 @@ python3-rpm-generators-14-11.azl3.noarch.rpm
565565
python3-setuptools-69.0.3-5.azl3.noarch.rpm
566566
python3-test-3.12.9-9.azl3.x86_64.rpm
567567
python3-tools-3.12.9-9.azl3.x86_64.rpm
568-
python3-wheel-0.43.0-1.azl3.noarch.rpm
568+
python3-wheel-0.46.3-1.azl3.noarch.rpm
569569
readline-8.2-2.azl3.x86_64.rpm
570570
readline-debuginfo-8.2-2.azl3.x86_64.rpm
571571
readline-devel-8.2-2.azl3.x86_64.rpm

0 commit comments

Comments
 (0)