Skip to content

[High] Patch python-urllib3 for CVE-2025-66471#16158

Open
akhila-guruju wants to merge 4 commits intomicrosoft:fasttrack/2.0from
akhila-guruju:topic_new-urllib3-2.0
Open

[High] Patch python-urllib3 for CVE-2025-66471#16158
akhila-guruju wants to merge 4 commits intomicrosoft:fasttrack/2.0from
akhila-guruju:topic_new-urllib3-2.0

Conversation

@akhila-guruju
Copy link
Contributor

@akhila-guruju akhila-guruju commented Mar 11, 2026

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

Patch python-urllib3 for CVE-2025-66471
Patch Backported: Yes

In noxfile.py
some syntax changes were made because python version in 2.0 is 3.9.x.

In response.py
new class class BytesQueueBuffer has been added in response.py file and related tests were also added in test_response.py.
read() API was backported as per the upstream reference, new API call _raw_read was backported as it was used in backported read() API.
read1() API is not present in this codebase. So, changes made for read1() API in upstream patch are not present in backport patch.

In test_response.py
testcases for zstd are not backported/patched, because this encoding method is not used in v1.26.19 codebase and no testcases were present in test file.

Upstream Patch: https://github.com/urllib3/urllib3/commit/c19571de34c47de3a766541b041637ba5f716ed7.patch
Reference has been taken from Redhat patch: r10s/python-urllib3-1.26.19-3.el10/SOURCES/CVE-2025-66471.patch

Change Log
  • new file: SPECS/python-urllib3/CVE-2025-66471.patch
  • modified: SPECS/python-urllib3/python-urllib3.spec
Does this affect the toolchain?

NO

Associated issues
  • #xxxx
Links to CVEs
Test Methodology

@microsoft-github-policy-service microsoft-github-policy-service bot added Packaging fasttrack/2.0 PRs Destined for Azure Linux 2.0 labels Mar 11, 2026
@Kanishk-Bansal
Copy link
Contributor

Full Build

@Kanishk-Bansal
Copy link
Contributor

re hitting full build

@akhila-guruju akhila-guruju marked this pull request as ready for review March 12, 2026 09:34
@akhila-guruju akhila-guruju requested a review from a team as a code owner March 12, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fasttrack/2.0 PRs Destined for Azure Linux 2.0 Packaging security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants