Visual Studio Code Workspace Trust Bypass Can Enable Commands Without Trust Approval
Vulnerability Disclosure · 5 sources · Updated 6d ago · First seen Nov 11, 2026

Microsoft patched CVE-2026-121665, a Visual Studio Code Workspace Trust bypass affecting versions 1.0.0 through releases before 1.145.3. An attacker must persuade a user to open a crafted workspace and click an attacker-controlled notification; successful exploitation can allow commands to execute in the user’s context without granting workspace trust. ZeroPath describes configuration-filtering gaps involving unregistered experiment overrides and dotted keys beneath restricted settings, allowing untrusted workspace settings to influence restricted behavior. The flaw is classified as a trust boundary violation, CWE-501. Microsoft rates it Important, with a CVSS v3.1 score of 8.8, and released the fix on November 10. (Microsoft advisory, ZeroPath analysis)
Microsoft also disclosed CVE-2026-121662, a separate command-injection vulnerability that can bypass Workspace Trust when a user opens a specially crafted workspace, enabling code execution in the user’s context. It carries an Important rating and a CVSS v3.1 score of 8.6. At initial publication, Microsoft reported neither public disclosure nor observed exploitation for either flaw, but assessed exploitation as more likely for CVE-2026-121662 and less likely for CVE-2026-121665. Organizations should upgrade affected VS Code installations to 1.145.3 or later for CVE-2026-121665 and verify deployment of Microsoft’s official fix for CVE-2026-121662; Workspace Trust alone does not mitigate these attack paths. (Microsoft RCE advisory)


