Visual Studio Code Security Feature Bypass Vulnerability (CVE-2026-58650)
Visual Studio Code's Workspace Trust feature could be bypassed because of an authorization check that relied on a user-controlled key. An attacker could get code or commands from an untrusted workspace to run without the user granting trust.
Description
Authorization bypass through user-controlled key 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
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 an authorization decision was based on a value the attacker could control, so the Workspace Trust check could be made to pass for an untrusted workspace.
Impact
An attacker could bypass Workspace Trust and cause content from an untrusted workspace to run commands or code without the user granting trust.
What the attacker needed
Open 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.
Workspace Trust is a safety prompt in Visual Studio Code that asks whether you trust a folder before letting its settings or tasks run automatically. This report says that check could be skipped, so opening a folder from an untrusted source might run its code without asking you first.
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.