Visual Studio Code Remote Code Execution Vulnerability (CVE-2026-69320)
Visual Studio Code fails to neutralise special elements used in an OS command, allowing OS command injection. An attacker could craft a malicious link or web page and convince a user to open it in VS Code, potentially executing code in the user's connected development environment.
Thomas Neil James Shadwell Follow
Originally disclosed on Microsoft
Description
Improper neutralization of special elements used in an os command ('os command injection') in Visual Studio Code allows an unauthorized attacker to execute code over a network.
FAQ
How could an attacker exploit this vulnerability? An attacker could craft a malicious link or web page and use social engineering to convince a user to open it in Visual Studio Code. Successful exploitation could result in code execution in the user's connected development environment. User interaction is required to open the attacker-supplied link, and no authentication is needed.
Visual Studio Code
Visual Studio Code
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely improper neutralisation of special elements used in an OS command, allowing command injection when a crafted link or web page is opened.
Impact
Successful exploitation could result in code execution in the user's connected development environment, but user interaction is required to open the attacker-supplied link.
What the attacker needed
Victim opens a malicious link or web page; user interaction required; no authentication needed
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Visual Studio Code is a popular code editor. This flaw means that if you open a specially crafted link or web page in the editor, an attacker might be able to run their own commands on your computer or development environment. It requires you to be tricked into opening the link, so it is not something that happens automatically.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.