CVE-2026-121662: Command Injection and Workspace Trust Bypass in Visual Studio Code
- Vendor
- Microsoft Corporation
CVE-2026-121662 is a command-injection vulnerability in Microsoft Visual Studio Code caused by improper neutralization of special elements used in commands. An attacker can persuade a user to open a specially crafted workspace, bypass Workspace Trust protections, and execute attacker-controlled code locally in the user's context without the user granting workspace trust. The specific vulnerable function and complete affected-version range are not identified. Microsoft rates the vulnerability Important with a CVSS v3.1 base score of 8.6.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary code execution with the victim user's permissions, potentially compromising data confidentiality and integrity and disrupting availability. Workspace Trust does not prevent exploitation, even when the user has not trusted the malicious workspace. The CVSS assessment assigns High confidentiality, integrity, and availability impacts.
Mitigation
If you can’t patch tonight, do this now.
Until the update is installed, avoid opening workspaces from untrusted or unverified sources. Do not rely on Restricted Mode or withholding workspace trust as sufficient protection, because exploitation bypasses Workspace Trust. No vulnerability-specific vendor workaround is identified.
Remediation
Patch, then assume compromise.
Upgrade Visual Studio Code to version 1.145.3 or a later patched release, which includes the fix for CVE-2026-121662.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-121662 exploited in the wild?
- As of Nov 17, 2026, Mallory has no reports of CVE-2026-121662 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-121662?
- As of Nov 17, 2026, Mallory has found no public exploit for CVE-2026-121662.
- Is there a patch for CVE-2026-121662?
- Upgrade Visual Studio Code to version 1.145.3 or a later patched release, which includes the fix for CVE-2026-121662.
- What products are affected by CVE-2026-121662?
- Microsoft Corporation Visual Studio Code.
- How severe is CVE-2026-121662?
- CVE-2026-121662 has a CVSS v3.1 score of 8.6 (High) and an EPSS score of 0.53% (45th percentile) as of Nov 17, 2026.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.