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.
Quick Take
- 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)
- Who is affected: Visual Studio Code 1.145.2 and earlier on every platform
- What to do: Update to Visual Studio Code 1.145.3
- Exploitation: Microsoft reports no known exploitation and no public disclosure before the fix
- 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.



