Skip to content
Access control Advisory Intermediate CVE-2026-78462

Visual Studio Code Security Feature Bypass Vulnerability (CVE-2026-78462)

Visual Studio Code's Workspace Trust feature could be bypassed because a crafted workspace could make the editor connect to an attacker-controlled service. An attacker could then access local data or run code as the user without the user granting trust.

陳宥升 Follow

Originally disclosed on Microsoft

High 8.8 View original

Description

Authorization bypass through user-controlled key 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. The workspace could cause Visual Studio Code to connect to an attacker-controlled service and bypass Workspace Trust restrictions. Successful exploitation could allow the attacker to access local data or execute code in the context of the user. User interaction is required, but the user does not need to trust the workspace.

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.

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by 陳宥升 (CheN..). Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 an authorization check that relies on a user-controlled key, so a crafted workspace can make the editor treat an untrusted workspace as trusted.

Impact

Successful exploitation could allow the attacker to access local data or execute code in the context of the user, and the user does not need to trust the workspace.

What the attacker needed

Victim opens a crafted workspace; user interaction required

How it was found

  1. The attacker creates a specially crafted Visual Studio Code workspace.
  2. The attacker convinces a user to open that workspace.
  3. The workspace causes Visual Studio Code to connect to an attacker-controlled service.
  4. The connection bypasses Workspace Trust restrictions.

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. Workspace Trust is a safety prompt that asks whether you trust a folder before it runs any code. Here, a malicious folder could skip that prompt and connect to a server the attacker controls, so the editor might run the attacker's code or read your files.

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.

More by 陳宥升

View all

3 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.