Microsoft Fixes VS Code Workspace Trust Bypass That Could Enable Code Execution
Vulnerability Disclosure · 3 sources · Updated 7d ago · First seen Nov 11, 2026

Microsoft released a fix for CVE-2026-102236, a Visual Studio Code security feature bypass that could let attacker-controlled workspace content execute commands or code without the user granting trust. Exploitation requires convincing a user to open a specially crafted workspace, after which execution could occur in that user's context. Microsoft rates the vulnerability Important, with a CVSS v3.1 base score of 8.6. At publication, Microsoft reported no prior public disclosure or exploitation and assessed exploitation as less likely.
Organizations should deploy the available VS Code update rather than rely solely on Workspace Trust to contain unfamiliar projects. The feature normally places untrusted workspaces in Restricted Mode, limiting capabilities such as terminals, tasks, debugging, AI agents, workspace settings, and certain extensions. Users should continue reviewing unfamiliar repositories before granting trust and install extensions only from trusted publishers: Microsoft's documentation warns that malicious extensions can ignore Restricted Mode, so Workspace Trust is not a complete security boundary.


