Skip to content

[Medium] Patch python-virtualenv for CVE-2025-50181, CVE-2026-24049, CVE-2026-1703#15951

Open
BinduSri-6522866 wants to merge 3 commits intomicrosoft:3.0-devfrom
BinduSri-6522866:topic_python-virtualenv-3.0
Open

[Medium] Patch python-virtualenv for CVE-2025-50181, CVE-2026-24049, CVE-2026-1703#15951
BinduSri-6522866 wants to merge 3 commits intomicrosoft:3.0-devfrom
BinduSri-6522866:topic_python-virtualenv-3.0

Conversation

@BinduSri-6522866
Copy link
Contributor

@BinduSri-6522866 BinduSri-6522866 commented Feb 23, 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-virtualenv for CVE-2025-50181 [Medium]

  • Patch modified: Yes
  • Patch was backported for poolmanager.py, rest of the files [CHANGES.rst, docs/reference/contrib/emscripten.rst, dummyserver/app.py, test/contrib/emscripten/test_emscripten.py, test/test_poolmanager.py, test/with_dummyserver/test_poolmanager.py] are not available for the version of urllib3 being used along with this package.
  • Astrolabe patch reference: https://github.com/urllib3/urllib3/commit/f05b1329126d5be6de501f9d1e3e36738bc08857.patch

Patch python-virtualenv for CVE-2026-24049 [Medium]

Patch python-virtualenv for CVE-2026-1703 [Low]

  • Patch modified: Yes
  • tests/unit/test_utils_unpacking.py file is not present in python-virtualenv source tar ball, so patch didn't apply.
  • In pip-25.3-py3-none-any.whl the news/+1ee322a1.bugfix.rst new path is not added from upstream patch to maintain compatibility with existing virtualenv cleanup behavior after tightening path validation logic (commonpath). This avoids leaving non-runtime artifacts in site-packages during pip uninstall and allows existing tests to pass without modifying test code.
  • Astrolabe patch reference: https://github.com/pypa/pip/commit/8e227a9be4faa9594e05d02ca05a413a2a4e7735.patch
Change Log
Does this affect the toolchain?

NO

Links to CVEs
Test Methodology
image image image image image

@microsoft-github-policy-service microsoft-github-policy-service bot added Packaging 3.0-dev PRs Destined for AzureLinux 3.0 labels Feb 23, 2026
@Kanishk-Bansal
Copy link
Contributor

Buddy Build

@BinduSri-6522866 BinduSri-6522866 changed the title [Medium] Patch python-virtualenv for CVE-2025-50181 [Medium] Patch python-virtualenv for CVE-2025-50181, CVE-2026-24049, CVE-2026-1703 Feb 24, 2026
@BinduSri-6522866
Copy link
Contributor Author

@BinduSri-6522866 BinduSri-6522866 marked this pull request as ready for review February 25, 2026 04:01
@BinduSri-6522866 BinduSri-6522866 requested a review from a team as a code owner February 25, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.0-dev PRs Destined for AzureLinux 3.0 Packaging security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants