Repository navigation
chore(deps): update dependency virtualenv to v21 [security] - #188
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
Branch automerge failureThis PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.
|
renovate
Bot
force-pushed
the
renovate/pypi-virtualenv-vulnerability
branch
from
January 13, 2026 20:43
37b920b to
4e30633
Compare
renovate
Bot
force-pushed
the
renovate/pypi-virtualenv-vulnerability
branch
2 times, most recently
from
March 30, 2026 21:18
4e30633 to
9807e7c
Compare
renovate
Bot
force-pushed
the
renovate/pypi-virtualenv-vulnerability
branch
2 times, most recently
from
April 27, 2026 21:10
9807e7c to
0072927
Compare
renovate
Bot
force-pushed
the
renovate/pypi-virtualenv-vulnerability
branch
from
October 7, 2026 00:30
0072927 to
d70104c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==20.23.1→==21.7.12virtualenv allows command injection through activation scripts for a virtual environment
CVE-2024-53899 / GHSA-rqc4-2hc7-8c8v
More information
Details
virtualenv before 20.26.6 allows command injection through the activation scripts for a virtual environment. Magic template strings are not quoted correctly when replacing. NOTE: this is not the same as CVE-2024-9287.
Severity
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
virtualenv Has TOCTOU Vulnerabilities in Directory Creation
CVE-2026-22702 / GHSA-597g-3phw-6986
More information
Details
Impact
TOCTOU (Time-of-Check-Time-of-Use) vulnerabilities in
virtualenvallow local attackers to perform symlink-based attacks on directory creation operations. An attacker with local access can exploit a race condition between directory existence checks and creation to redirect virtualenv's app_data and lock file operations to attacker-controlled locations.Affected versions: All versions up to and including 20.36.1
Affected users: Any user running
virtualenvon multi-user systems where untrusted local users have filesystem access to shared temporary directories or whereVIRTUALENV_OVERRIDE_APP_DATApoints to a user-writable location.Attack scenarios:
Patches
The vulnerability has been patched by replacing check-then-act patterns with atomic
os.makedirs(..., exist_ok=True)operations.Fixed in: PR #3013
Versions with the fix: 20.36.2 and later
Users should upgrade to version 20.36.2 or later.
Workarounds
If you cannot upgrade immediately:
VIRTUALENV_OVERRIDE_APP_DATApoints to a directory owned by the current user with restricted permissions (mode 0700)virtualenvin shared temporary directories where other users have write accessReferences
Severity
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
virtualenv: Downloaded seed wheels (pip/setuptools) are not integrity-checked before use
CVE-2026-102930 / GHSA-94p9-xgh2-xp45
More information
Details
download_wheel()runspip downloadand hands the result straight to the seeder, with nothing checking the bytes it gets back. The embedded pip and setuptools wheels carry aBUNDLE_SHA256that virtualenv checks on every load, but a wheel fetched over the network for the periodic-update feature or the--downloadflag had no equivalent verification.A compromised index, a stale mirror, or a MITM'd download (when TLS is intercepted, e.g. via a misconfigured or malicious CA) could substitute a different wheel under the same distribution/version/filename, and virtualenv would cache and seed it into every environment created afterward with no warning.
Fixed by computing the downloaded wheel's sha256 and comparing it against the digest PyPI's public JSON API reports for that exact release, independent of which index actually served the file. The check is skipped, not treated as failure, when a custom index (
PIP_INDEX_URL,PIP_EXTRA_INDEX_URL,PIP_INDEX) is configured, since a private index can legitimately serve a different, intentionally rebuilt wheel. Fix: https://github.com/pypa/virtualenv/pull/3251Severity
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection
CVE-2026-102938 / GHSA-9h9j-4vrj-gf7g
More information
Details
Summary
pyvenv.cfgis a line-based format with no escape syntax.PyEnvCfg.write()wrote values verbatim, whilePyEnvCfg._read_values()parses the file withstr.splitlines(). A value containing a line boundary therefore became additional configuration lines, and because reading is last-wins, the injected keys replaced any key written earlier in the file.Impact
The
promptvalue is the reachable input: it is set by--prompt, by theVIRTUALENV_PROMPTenvironment variable, or from the config file, andwrite()emitspromptbeforehome. A crafted prompt can therefore sethomein the generatedpyvenv.cfg:homeis what tooling reads to locate the base interpreter, so a consumer that trusts it can be pointed elsewhere.implementation,version_info,version,executable,commandandvirtualenvare also written beforepromptand can be replaced the same way.This requires the prompt to come from somewhere other than the person running the command, for example a CI job templating a branch name into it, tooling deriving an environment name from user-supplied data, or an inherited
VIRTUALENV_PROMPT. Where the operator supplies the prompt directly they already control the command line, and the effect is corruption rather than privilege gain: the value is truncated at the boundary and read back with a dangling quote.Details
The boundary set is the one
str.splitlines()recognizes, which is wider than\n:\r,\v,\f, the file, group and record separators,U+0085,U+2028andU+2029were all written through unchanged and all split the line when read back.Patches
PyEnvCfg.write()now collapses those boundaries to spaces as it serializes each line, so it cannot emit a structurally invalid file regardless of what a caller places incontent.Workarounds
Do not pass externally influenced data as the virtualenv prompt. Strip line boundaries from any value before using it as
--promptorVIRTUALENV_PROMPT.Severity
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
pypa/virtualenv (virtualenv)
v21.7.12Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.7.11...21.7.12
v21.7.11Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.7.10...21.7.11
v21.7.10Compare Source
What's Changed
New Contributors
Full Changelog: pypa/virtualenv@21.7.9...21.7.10
v21.7.9Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.7.8...21.7.9
v21.7.8Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.7.7...21.7.8
v21.7.7Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.7.6...21.7.7
v21.7.6Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.7.5...21.7.6
v21.7.5Compare Source
What's Changed
New Contributors
Full Changelog: pypa/virtualenv@21.7.4...21.7.5
v21.7.4Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.7.3...21.7.4
v21.7.3Compare Source
What's Changed
New Contributors
Full Changelog: pypa/virtualenv@21.7.2...21.7.3
v21.7.2Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.7.1...21.7.2
v21.7.1Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.7.0...21.7.1
v21.7.0Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.6.1...21.7.0
v21.6.1Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.6.0...21.6.1
v21.6.0Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.5.2...21.6.0
v21.5.2Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.5.1...21.5.2
v21.5.1Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.5.0...21.5.1
v21.5.0Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.4.3...21.5.0
v21.4.3Compare Source
What's Changed
New Contributors
Full Changelog: pypa/virtualenv@21.4.2...21.4.3
v21.4.2Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.4.1...21.4.2
v21.4.1Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.4.0...21.4.1
v21.4.0Compare Source
What's Changed
New Contributors
Full Changelog: pypa/virtualenv@21.3.3...21.4.0
v21.3.3Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.3.2...21.3.3
v21.3.2Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.3.1...21.3.2
v21.3.1Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.3.0...21.3.1
v21.3.0Compare Source
What's Changed
New Contributors
Full Changelog: pypa/virtualenv@21.2.4...21.3.0
v21.2.4Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.2.3...21.2.4
v21.2.3Compare Source
Full Changelog: pypa/virtualenv@21.2.2...21.2.3
v21.2.2Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.2.1...21.2.2
v21.2.1Compare Source
What's Changed
New Contributors
Full Changelog: pypa/virtualenv@21.2.0...21.2.1
v21.2.0Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.1.0...21.2.0
v21.1.0Compare Source
What's Changed
Full Changelog: pypa/virtualenv@21.0.0...21.1.0
v21.0.0Compare Source
What's Changed
Full Changelog: pypa/virtualenv@20.39.1...21.0.0
v20.39.1Compare Source
What's Changed
Full Changelog: pypa/virtualenv@20.39.0...20.39.1
v20.39.0Compare Source
What's Changed
Full Changelog: pypa/virtualenv@20.38.0...20.39.0
v20.38.0Compare Source
What's Changed
Automated testingdocumentation section by @elmjag in #3016PKG_CONFIG_PATHenvironment variable support to all activation scripts by @rahuldevikar in #3023New Contributors
Full Changelog: pypa/virtualenv@20.37.0...20.38.0
v20.36.1Compare Source
What's Changed
Full Changelog: pypa/virtualenv@20.36.0...20.36.1
v20.36.0Compare Source
What's Changed
errno.EMFILEinstead ofstrerrorby @pltrz in #3001--pythonflag. by @rahuldevikar in #3008New Contributors
Full Changelog: pypa/virtualenv@20.35.3...20.36.0
v20.35.4[Compare Source](http
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.