VDB
Sign up
HIGH8.4

PYSEC-2026-4374

Quick fix

PYSEC-2026-4374 — virtualenv: upgrade to the fixed version with the command below.

pip install --upgrade 'virtualenv>=21.14.9'

Details

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the stdlib venv creator reads generated pyvenv.cfg with str.splitlines() and merges parsed keys over virtualenv's selected configuration. An untrusted caller who influences the destination pathname can include a line-boundary character such as U+2028 to inject keys including home and include-system-site-packages, causing path data to change configuration structure before final output. Setting include-system-site-packages to true weakens environment isolation, while an altered home can change which standard-library files the interpreter loads if the attacker also controls that location. The builtin creator does not use this readback path. This issue is fixed in version 21.14.9.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/virtualenv
Introduced in: 20.0.0Fixed in: 21.14.9
Fixpip install --upgrade 'virtualenv>=21.14.9'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/virtualenv"]}'