Visual Studio Code Security Feature Bypass Vulnerability (CVE-2026-121663)
Visual Studio Code's list of disallowed inputs was incomplete, so a crafted workspace could bypass Workspace Trust protections. An attacker who convinces a user to open such a workspace could get attacker-controlled content to execute code as the user, without the user granting trust.
Description
Incomplete list of disallowed inputs in Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network.
FAQ
How could an attacker exploit this vulnerability? An attacker could convince a user to open a specially crafted Visual Studio Code workspace. Successful exploitation could bypass Workspace Trust protections and allow attacker-controlled content to execute code in the context of the user. User interaction is required, but the user does not need to grant trust.
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 the blocklist of disallowed workspace inputs was incomplete, so some input that should have been rejected was accepted and processed despite Workspace Trust.
Impact
An attacker could bypass Workspace Trust and execute code as the user, but the victim must open a crafted workspace and interact with it.
What the attacker needed
Victim opens a crafted workspace; user interaction required
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 code editor. It has a safety feature called Workspace Trust that asks whether you trust a folder before letting its settings run things. Here, that safety check could be tricked by a specially made workspace, so opening it might run the attacker's code even though you never said you trusted it.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.