Visual Studio Code Security Feature Bypass Vulnerability (CVE-2026-102236)
Visual Studio Code failed to properly restrict rendered UI layers or frames, allowing a crafted workspace to bypass the Workspace Trust feature. An attacker could convince a user to open such a workspace and have attacker-controlled content execute code in the user's context without the user granting trust.
Originally disclosed on Microsoft
Description
Improper restriction of rendered ui layers or frames in Visual Studio Code allows an unauthorized attacker to bypass a security feature locally.
FAQ
What security feature could be bypassed by successfully exploiting this vulnerability? An attacker who successfully exploited this vulnerability could bypass the Visual Studio Code Workspace Trust feature, allowing content from an untrusted workspace to run commands or code without the user first granting trust. See Workspace Trust for more information.
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 improper restriction of rendered UI layers or frames, which allowed a crafted workspace to bypass the Workspace Trust prompt.
Impact
An attacker could bypass Workspace Trust and execute code in the user's context, though user interaction is required and the attack is local.
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 popular code editor. It has a safety feature called Workspace Trust that asks you to approve a folder before its contents can run commands. This bug let a malicious workspace skip that approval and run code anyway, just by opening 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.