CVE-2026-120779: Remote Code Execution via MCP Notifications in Visual Studio Code
- Vendor
- Microsoft Corporation
CVE-2026-120779 is a code-injection vulnerability in Microsoft Visual Studio Code versions 1.0.0 through versions before 1.145.3. When a remote Model Context Protocol (MCP) server submits an elicitation request without an available chat session, McpElicitationService falls back to a workbench notification. The notification renderer interprets server-controlled messages as linked text, allowing crafted Markdown command links to invoke workbench commands when clicked. Non-string message objects can also impersonate the renderer's internal linked-text structure. An attacker controlling the connected MCP server can exploit either path to execute code with the user's permissions after the user clicks the malicious notification link.
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 permissions of the affected Visual Studio Code user, potentially compromising the confidentiality, integrity, and availability of resources accessible to that account. This can include reading sensitive development data, modifying projects, or executing additional programs. The vulnerability does not inherently grant administrator or SYSTEM privileges, and passive notification display alone is insufficient to trigger the described exploitation.
Mitigation
If you can’t patch tonight, do this now.
Until patched, disable MCP support using the ChatMCP policy value off, or restrict available MCP servers to a curated registry using registryOnly. Avoid connecting to untrusted MCP servers and do not click unexpected command links in MCP-generated notifications. Review server provenance and repository configuration before approving connections. These controls reduce exposure but are not substitutes for patching; no dedicated workaround is documented. Sandboxing locally running stdio MCP servers does not address this remote-server vulnerability.
Remediation
Patch, then assume compromise.
Upgrade Visual Studio Code to version 1.145.3, released November 10, 2026, or later. The fix renders server-controlled elicitation messages as literal notification text and validates that messages are strings before processing them, including task-augmented requests. Malformed non-string messages are rejected with a JSON-RPC INVALID_PARAMS error. Both protections are necessary to address the string-based command-link and object-based renderer-impersonation paths. Install the update through Check for Updates or Microsoft's download service, and verify the installed version in the About dialog.
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-120779 exploited in the wild?
- As of Nov 20, 2026, Mallory has no reports of CVE-2026-120779 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-120779?
- As of Nov 20, 2026, Mallory has found no public exploit for CVE-2026-120779.
- Is there a patch for CVE-2026-120779?
- Upgrade Visual Studio Code to version 1.145.3, released November 10, 2026, or later. The fix renders server-controlled elicitation messages as literal notification text and validates that messages are strings before processing them, including task-augmented requests.
- What products are affected by CVE-2026-120779?
- Microsoft Corporation Visual Studio Code.
- How severe is CVE-2026-120779?
- CVE-2026-120779 has a CVSS v3.1 score of 9.6 (Critical) and an EPSS score of 0.88% (57th percentile) as of Nov 20, 2026.
Recent activity
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.