Control: tags -1 patch Le 2026-12-02 15:27, [email protected] a écrit :
Package: python3-urllib3 Version: 1.26.5-1~exp1+deb11u2 Severity: serious X-Debbugs-Cc: [email protected], [email protected]Control: notfound -1 1.26.12-1 Control: block 1156141 by -1 Control: affects -1 src:python-pip Hi,The fix for CVE-2025-66418 uses a syntax not supported by Python2 [1]. This breaks Python2 support for src:python-pip which used to work for buildingPython2 virtual environment before that. [1] f"{len(encodings)} > {self.max_decode_links}" I'll post a debdiff with a patch proposal in a follow-up email.
See attached debdiff. Thanks, _g.
diff -Nru python-urllib3-1.26.5/debian/changelog python-urllib3-1.26.5/debian/changelog --- python-urllib3-1.26.5/debian/changelog 2026-06-26 07:05:34.000000000 +0200 +++ python-urllib3-1.26.5/debian/changelog 2026-12-02 14:22:19.000000000 +0100 @@ -1,3 +1,10 @@ +python-urllib3 (1.26.5-1~exp1+deb11u5) scibian11; urgency=medium + + * Restore Python 2 support broken by previous fixes + (affects: src:python-pip) + + -- Gilles Filippini <[email protected]> Wed, 02 Dec 2026 14:22:19 +0100 + python-urllib3 (1.26.5-1~exp1+deb11u4) bullseye-security; urgency=high * Non-maintainer upload by the LTS Team. diff -Nru python-urllib3-1.26.5/debian/patches/python2-support.patch python-urllib3-1.26.5/debian/patches/python2-support.patch --- python-urllib3-1.26.5/debian/patches/python2-support.patch 1970-01-01 01:00:00.000000000 +0100 +++ python-urllib3-1.26.5/debian/patches/python2-support.patch 2026-12-02 14:22:19.000000000 +0100 @@ -0,0 +1,13 @@ +Index: python-urllib3-1.26.5/src/urllib3/response.py +=================================================================== +--- python-urllib3-1.26.5.orig/src/urllib3/response.py ++++ python-urllib3-1.26.5/src/urllib3/response.py +@@ -138,7 +138,7 @@ class MultiDecoder(object): + if len(encodings) > self.max_decode_links: + raise DecodeError( + "Too many content encodings in the chain: " +- f"{len(encodings)} > {self.max_decode_links}" ++ "{} > {}".format(len(encodings), self.max_decode_links) + ) + self._decoders = [_get_decoder(e) for e in encodings] + diff -Nru python-urllib3-1.26.5/debian/patches/series python-urllib3-1.26.5/debian/patches/series --- python-urllib3-1.26.5/debian/patches/series 2026-06-26 07:05:34.000000000 +0200 +++ python-urllib3-1.26.5/debian/patches/series 2026-12-02 14:22:19.000000000 +0100 @@ -11,3 +11,4 @@ 0011-apply-suggestion-from-pquentin.patch CVE-2026-21441.patch CVE-2026-44431.patch +python2-support.patch
signature.asc
Description: OpenPGP digital signature

