Visual Studio Code Workspace Trust Bypass Can Enable Commands Without Trust Approval
Vulnerability Disclosure · 5 sources · Updated 17d 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)
Why it matters
Two patched Visual Studio Code vulnerabilities can bypass Workspace Trust and enable execution in the user's context after interaction with a malicious workspace. Exposed users could face source-code tampering, credential theft, or operational disruption, although these are potential consequences rather than reported incidents; the supplied content establishes no targeted campaign or deployment counts. Microsoft reported neither vulnerability exploited at initial publication on November 10, 2026, and assessed exploitation as more likely for CVE-2026-121662 and less likely for CVE-2026-121665.
- Industry-specific impact is not established. Exposure concerns users of affected VS Code installations; no affected organizations or targeted sectors are identified.
- Geography-specific impact is not established. No affected populations, operations, geographic targeting, or jurisdiction-specific obligations are identified.
- Workspace Trust is not a sufficient control against these paths: exploitation does not require the victim to grant workspace trust. See the CVE-2026-121662 advisory and CVE-2026-121665 advisory.


