virtualenv versions prior to 21.7.12 contain a command injection vulnerability in the Windows batch activation script. The issue arises because the prompt text provided via --prompt or environment variables is not properly sanitized before being inserted into a cmd.exe set statement. This allows an attacker who can influence the prompt value to inject arbitrary commands that execute with the user's privileges when the virtual environment is activated. The vulnerability is fixed in version 21.7.12.