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

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

Visual Studio Code resolves path equivalence incorrectly, so a crafted untrusted workspace can be treated as trusted. An attacker could then run commands or code from that workspace without the user granting trust.

l8BL Follow

Originally disclosed on Microsoft

High 7.7 View original

Description

Improper resolution of path equivalence 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

According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to have a deep understanding of the system and the ability to manipulate its components to trigger a specific condition. Successful exploitation is not guaranteed and depends on a combination of factors that may include the environment, system configuration, and the presence of additional security measures.

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by l8BL with ENKI WhiteHat. 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 improper resolution of path equivalence, so a path that should be treated as untrusted is matched to a trusted one.

Impact

An attacker could bypass Workspace Trust and run commands or code from an untrusted workspace, though exploitation is not guaranteed and depends on environment and configuration.

What the attacker needed

Local access to the machine; victim opens a crafted workspace; deep knowledge of the system

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 Workspace Trust feature: when you open a folder from somewhere you do not trust, it asks you to confirm before letting that folder run code. This bug means a specially prepared folder can slip past that check and run code as if you had already said yes. The attacker needs local access and a good understanding of how the editor handles paths.

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 l8BL

View all

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