Visual Studio Code Remote Code Execution Vulnerability (CVE-2026-119985)
Visual Studio Code has an incorrect authorization flaw that lets an unauthenticated attacker execute code over the network. An attacker could craft a malicious link or web page and use social engineering to convince a user to open it, leading to code execution in the user's connected development environment.
Description
Incorrect authorization 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.
FAQ
According to the CVSS metric, the attack complexity is high (AC:H). What does this mean for this vulnerability? An attacker would need specific conditions to be in place (i.e. particular protocol settings, or configurations, etc.) before an attack could succeed, which reduces the likelihood of widespread or opportunistic exploitation.
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
Impact
Successful exploitation could result in code execution in the user's connected development environment, but the attacker needs specific conditions such as particular protocol settings or configurations, and the user must open the malicious link.
What the attacker needed
Victim opens attacker-supplied link; specific protocol or configuration settings
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 bug means that if a user opens a specially crafted link or web page in the editor, an attacker could run their own code on the user's machine or development environment. The user has 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.