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