Visual Studio Code Security Feature Bypass Vulnerability (CVE-2026-69278)
Visual Studio Code had an incorrect authorization check that let an attacker bypass the Workspace Trust feature. An attacker could then make content from an untrusted workspace run commands or code without the user granting trust.
Description
Incorrect authorization 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 incorrect authorization check in how Visual Studio Code decides whether a workspace is trusted before allowing content to run.
Impact
An attacker could bypass Workspace Trust so that content from an untrusted workspace runs commands or code without the user granting trust; the text does not say whether other defences limit this.
What the attacker needed
Local access to Visual Studio Code; user 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 is a code editor. It has a safety feature called Workspace Trust that asks you to approve a folder before its settings or tasks are allowed to run. This bug meant that approval could be skipped, so opening a malicious folder could run code without you agreeing to it.
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.