Microsoft fixes four MCP and agent mode vulnerabilities in VS Code
Start here
On November 10, 2026, Microsoft released four Visual Studio Code security advisories and fixed four vulnerabilities in 1.145.3, released that day; 1.145.2 and earlier are affected, with three involving the MCP client and one involving agent mode. CVE-2026-120779 is a CVSS 9.6 remote code execution vulnerability: a connected MCP server can turn elicitation notification text into a clickable command link, and clicking it runs code, provided the attacker controls the MCP server the user is connected to and induces a click; the fix renders Elicitation messages as plain text and validates the payload, and the temporary mitigation is to connect only to trusted MCP servers. The other vulnerabilities include a crafted vscode:mcp/install link carrying command input not shown in the preview, older SSE transports not validating the origin of server endpoints, and CVE-2026-120782 treating local command syntax in agent messages as user input and bypassing terminal approval. Microsoft says none of the four vulnerabilities has known exploitation in the wild, exploitation is unlikely, and they were found by the VS Code team itself.
Generated by AI from reports · Updated 11 days ago
Progress timeline
- The InjectionSelectedFour VS Code MCP and agent mode vulnerabilities can let malicious servers run code
Microsoft released four Visual Studio Code security advisories on November 10, 2026; the vulnerabilities were fixed in 1.145.3, and 1.145.2 and earlier versions are affected on all platforms, with three involving the MCP client and one involving agent mode. CVE-2026-120779 is a CVSS 9.6 remote code execution vulnerability in which a connected MCP server can turn elicitation notification text into clickable command links, and clicking them runs code; the other vulnerabilities include a crafted vscode:mcp/install link carrying command input not shown in the preview, older SSE transport not validating the origin of server endpoints, and CVE-2026-120782 treating local command syntax in agent messages as user input and bypassing terminal approval, affecting users who use agent mode to process instructions from untrusted repositories. Microsoft said none of the four vulnerabilities has known exploitation in the wild, rated exploitation likelihood as low, and said the VS Code team discovered and fixed them itself on the same day.
- cve.autoarticles.netVS Code 1.145.3 fixes vulnerability allowing command execution via MCP notification links (CVE-2026-120779)
Microsoft fixed CVE-2026-120779 in VS Code 1.145.3, released on November 10, 2026: in versions 1.145.2 and earlier, in an alternate path for displaying MCP server elicitation (requesting input from the user) via notifications, strings sent by the server were parsed as VS Code command links, so a malicious MCP server could use a crafted notification to induce a user to click and then execute commands. Microsoft (CNA) classified the vulnerability as code injection, stating that an unauthorized attacker could execute code over the network, with a CVSS 3.1 score of 9.6 (Critical); its assessment considered exploit code not yet confirmed, and as of 2026-11-17 it was not listed in CISA KEV. According to VS Code GitHub issue #347426, the attack prerequisite is that the attacker controls the MCP server the user is connected to and induces the user to click a link in a notification.
- microsoft/vscodeRemote code execution vulnerability in the VS Code MCP Elicitation notification path (CVE-2026-120779)
Microsoft disclosed a remote code execution vulnerability (GHSA-66hq-jw93-462h, CVE-2026-120779) in versions of VS Code before 1.145.3, in the fallback notification path for MCP Elicitation requests: server-controlled notification content can be parsed as an interactive command link, and a malicious MCP server can trigger command execution after the user clicks. An attacker needs to control a connected MCP server and induce the user to click a malicious link in a notification. Version 1.145.3 has fixed it by rendering Elicitation messages as plain text and validating the request payload before display. Temporary mitigations are to connect only to trusted MCP servers and not to activate links in notifications produced by untrusted servers.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- X@mackliu0099For those who have connected MCP or an Agent in VS Code, first upgrade to version 1.145.3 or higher. Below this version, a malicious MCP server can turn notifications into clickable command links—once you click, it executes with the current user's privileges. The official rating is High, with one vector at 9.6. Basis: …(opens the original post in a new tab)
- X@botnewsnetwork"EVERY PLACE THE CLIENT TRUSTS WHAT A SERVER SAYS": MICROSOFT'S PATCH TUESDAY SHIPS FIVE REMOTE-CODE-EXECUTION FIXES IN…(opens the original post in a new tab)
- X@wellagore🚨 CVE-2026-120779 — CRITICAL 9.6 Visual Studio Code < 1.145.3: code injection flaw allows remote code execution over…(opens the original post in a new tab)