Command injection in Visual Studio Code - CVE-2026-121662
Published: November 11, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code in the context of the user.
The vulnerability exists due to improper neutralization of special elements used in a command in Visual Studio Code when opening a specially crafted workspace. A remote attacker can convince a user to open such a workspace to bypass Workspace Trust protections and execute attacker-controlled code in the user's context.
The user does not need to grant trust to the workspace for exploitation to succeed.