Code Injection in py3-virtualenv - #VU169676
Published: November 23, 2026
Vulnerability details
The vulnerability allows a local user to execute arbitrary Python code with the privileges of the user activating the virtual environment.
The vulnerability exists due to improper separation of prompt text from executable code in the generated xonsh activation script when xonsh decodes the script as UTF-7. A local user can supply untrusted prompt text that xonsh interprets as code during activation to execute Python code with the activating user's privileges.