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

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

Visual Studio Code relied on untrusted input when deciding whether to enforce its Workspace Trust feature. An attacker could bypass that feature so content from an untrusted workspace runs commands or code without the user granting trust.

Nguyen Van Minh Duc Follow

Originally disclosed on Microsoft

High 7.4 View original

Description

Reliance on untrusted inputs in a security decision in Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network.

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 Nguyen Van Minh Duc with Saigon Newport Corporation. 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 application made a security decision based on input it did not validate, so the Workspace Trust check could be skipped.

Impact

An attacker could bypass Workspace Trust and run commands or code from an untrusted workspace without the user granting trust.

What the attacker needed

Victim opens an untrusted workspace

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 has a safety feature called Workspace Trust that asks you to approve a folder before it can run code. This report says the program trusted some input it should not have, so a malicious workspace could run code without that approval. The text does not explain the exact input or how the bypass works.

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 Nguyen Van Minh Duc

View all

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