Skip to content
Access control Advisory Advanced CVE-2026-70334

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

Visual Studio Code's list of disallowed inputs was incomplete, so a crafted untrusted workspace could get past the Workspace Trust feature. An attacker could then have content from that workspace run commands or code without the user granting trust first.

Khai Tran Follow

Originally disclosed on Microsoft

High 7.8 View original

Description

Incomplete list of disallowed inputs 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.

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Khai Tran with OpenAI. 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 the blocklist of disallowed inputs used by the Workspace Trust check was incomplete, so some inputs were not recognised as untrusted.

Impact

An attacker could bypass Workspace Trust so that content from an untrusted workspace runs commands or code without the user granting trust; the text does not say whether this needs the victim to open a crafted workspace.

What the attacker needed

Victim opens an untrusted workspace; local access to the editor

The fix

The vendor should complete the list of disallowed inputs so the Workspace Trust check catches every risky case; the text does not state that a fix has shipped.

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.

Workspace Trust is a safety switch in Visual Studio Code: when you open a folder you did not make yourself, the editor asks whether you trust it, and until you say yes it holds back features that could run code. Here the check that decides what counts as risky input was missing some cases, so a booby-trapped folder could slip past the switch. The advisory is short and does not say exactly which inputs were missed.

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 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.