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

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

Visual Studio Code's list of disallowed inputs was incomplete, so an untrusted workspace could apply settings that Workspace Trust should block. An attacker could bypass that protection if the user opens the attacker-controlled workspace.

novice-22 Follow with hyeon, bbznop and 4 others

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? Successful exploitation could allow an untrusted workspace to apply settings that should be blocked by Visual Studio Code's Workspace Trust protections. The user must open the attacker-controlled workspace.

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by novice-22. 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 list of disallowed inputs used by Workspace Trust was incomplete, so some settings were not blocked.

Impact

An untrusted workspace could apply settings that Workspace Trust should block, but only if the user opens the attacker-controlled workspace.

What the attacker needed

Victim opens an attacker-controlled 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 is a code editor. It has a feature called Workspace Trust that is meant to stop a downloaded project from changing editor settings on its own. Here, the list of things that feature blocks was incomplete, so a malicious project could still apply settings it should not.

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 novice-22

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.