CVE-2026-120779: VS Code MCP client lets hostile server run code with one click

Visual Studio Code 1.145.3 fixes four security flaws in its MCP client and agent mode, including CVE-2026-120779, a CVSS 9.6 remote code execution bug that lets a connected MCP server run code when the user clicks a notification.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 3 min read
Share
A developer's desk with a laptop showing a code editor, coffee mug beside the keyboard, morning light through a window
Image: AI-generated, i10X
On this page
  1. Quick Take
  2. In plain English
  3. What happened
  4. Who is affected
  5. What you should do
  6. How it works
  7. Sources

Microsoft published four security advisories for Visual Studio Code on 10 November 2026, all fixed in version 1.145.3. Three cover the editor’s MCP client and the fourth covers agent mode. The VS Code team filed and fixed the issues itself, and no outside researcher is credited on any of the four advisories.

i10X Quick Take

Quick Take

  1. What: Four security flaws in Visual Studio Code’s MCP client and agent mode, including CVE-2026-120779 (CVSS 9.6), CVE-2026-114171 (CVSS 8.8), CVE-2026-119983 (CVSS 8.8), and CVE-2026-120782 (CVSS 7.8)
  2. Who is affected: Visual Studio Code 1.145.2 and earlier on every platform
  3. What to do: Update to Visual Studio Code 1.145.3
  4. Exploitation: Microsoft reports no known exploitation and no public disclosure before the fix
  5. Disclosure: The VS Code team filed the issues on 10 November 2026 and closed them the same day

In plain English

Visual Studio Code is a popular code editor that can connect to MCP servers, which are tools that help AI assistants access data and run tasks. Microsoft found four security holes in how VS Code handles these connections. The worst one lets a malicious MCP server trick you into running dangerous code just by clicking a notification.

What you should do: If you use VS Code, update to version 1.145.3 right away. If you never connect MCP servers, three of the four flaws do not affect you, but the agent-mode flaw still does if you use that feature.

What happened

Microsoft published four security advisories for Visual Studio Code on 10 November 2026. All four flaws are fixed in version 1.145.3. Three advisories cover the editor’s MCP client and the fourth covers agent mode.

The VS Code team filed and fixed the issues itself. No outside researcher is credited on any of the four advisories. Microsoft reports no known exploitation and no public disclosure before the fix for all four CVEs, and rates exploitation as unlikely. Every advisory carries the exploit code maturity value E:U, meaning Microsoft knows of no exploit code.

The four CVEs are:

  • CVE-2026-120779 (CVSS 9.6): Elicitation notification text was rendered as a clickable command link, so server-controlled content became a runnable command.
  • CVE-2026-114171 (CVSS 8.8): A crafted vscode:mcp/install link could carry command-backed inputs that the install preview did not show.
  • CVE-2026-119983 (CVSS 8.8): The legacy SSE transport accepted a server-supplied endpoint without checking its origin.
  • CVE-2026-120782 (CVSS 7.8): Local-command syntax inside an agent message was handled as if the user had typed it.

Who is affected

Visual Studio Code 1.145.2 and earlier are affected on every platform. Three of the four flaws need a connected MCP server or an opened install link, so a user who adds no MCP servers is not exposed to those.

CVE-2026-120782 instead reaches anyone running agent mode against a repository with untrusted instructions. This flaw does not require a connected MCP server.

Anyone who installed the 1.145 release when it shipped on 4 November is running an unpatched build. Forks and derived editors ship on their own schedule and may lag behind.

What you should do

Update to Visual Studio Code 1.145.3.

Keep terminal approvals enabled and avoid session-wide tool permissions in repositories whose instructions you do not trust. Do not open vscode:mcp/install links from untrusted sources, and review the server configuration before approving an install.

How it works

Each flaw comes from VS Code trusting data that an MCP server or a link supplied.

CVE-2026-120779 abuses elicitation notifications: a connected MCP server supplied message content that Visual Studio Code rendered as a clickable command link, so activating it ran code.

CVE-2026-114171 works earlier, at install time. A crafted install link carried command-backed inputs that the preview did not surface, so approving the install ran an attacker-chosen command.

CVE-2026-119983 affects the legacy SSE transport. The transport accepted a server-supplied endpoint without checking its origin.

CVE-2026-120782 affects agent mode. Local-command syntax inside an agent message was handled as if the user had typed it, bypassing the expected terminal approval.

Sources

Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Editor's picks

  1. Georgia Tech’s Academic AI Playbook: 20 Lessons From 67 Real Courses, Free to Reuse
  2. Arcfront’s $1B Run Rate: What the AI Data Startup Confirms and What It Doesn’t
  3. GPT-6.2 Astra Tops Blueprint-Bench 2, 70% Above May Leader GPT-5.5
  4. Deutsche Telekom Puts 100 Million Euros Into Mistral for Sovereign AI in Germany
  5. Inkling 2 Mini: Thinking Machines’ Looped Open Model Tops Qwen on Coding Tests