Skip to content

[Medium] Patch python-virtualenv for CVE-2026-1703 & CVE-2026-24049#15983

Open
BinduSri-6522866 wants to merge 1 commit intomicrosoft:mainfrom
BinduSri-6522866:topic_python-virtualenv-2.0
Open

[Medium] Patch python-virtualenv for CVE-2026-1703 & CVE-2026-24049#15983
BinduSri-6522866 wants to merge 1 commit intomicrosoft:mainfrom
BinduSri-6522866:topic_python-virtualenv-2.0

Conversation

@BinduSri-6522866
Copy link
Contributor

@BinduSri-6522866 BinduSri-6522866 commented Feb 25, 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

What does the PR accomplish, why was it needed?
Patch python-virtualenv for CVE-2026-1703 [Low]:

  • Patch modified: Yes
  • In pip-24.2-py3-none-any.whl [CVE-2026-1703v1.patch] the news/+1ee322a1.bugfix.rst new path is not added in patch 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

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

Change Log
  • new file: ../SPECS/python-virtualenv/CVE-2026-1703v0.patch
  • new file: ../SPECS/python-virtualenv/CVE-2026-1703v1.patch
  • new file: ../SPECS/python-virtualenv/CVE-2026-1703v2.patch
  • new file: ../SPECS/python-virtualenv/CVE-2026-24049v0.patch
  • new file: ../SPECS/python-virtualenv/CVE-2026-24049v1.patch
  • new file: ../SPECS/python-virtualenv/CVE-2026-24049v2.patch
  • modified: ../SPECS/python-virtualenv/python-virtualenv.spec
Does this affect the toolchain?

NO

Links to CVEs
Test Methodology
image image image image image image
  • Installation & Uninstallation check:
image image

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

Labels

main PR Destined for main Packaging security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants