security
high confidence
VS Code: arbitrary commands through MCP notifications (CVE-2026-120779, CVSS 9.6)
TL;DR Code injection through an MCP server notification lets an attacker run arbitrary commands in VS Code. Fixed in 1.145.3.
In plain words: VS Code can talk to MCP servers, small programs that give its AI assistant extra tools. A malicious MCP server could send a crafted notification that made VS Code run any command the attacker wanted.
What happened
An MCP server could inject code through VS Code’s notification channel and execute arbitrary commands on the machine. CVSS 9.6.
Who is affected
VS Code versions before 1.145.3 with any MCP server connected.
Why it matters
MCP servers are often installed from a README with one command. A rogue or compromised one gets full command execution, not just access to its own tool.
What to do
- Update VS Code to 1.145.3 or newer (Help → About shows the version).
- Until you update, don’t connect MCP servers from sources you don’t trust.