CVE-2026-21518
VS Code MCP configuration could cross the command-execution boundary
Microsoft · VS Code and GitHub Copilot Chat
First documented disclosure · Review checkpoint
Summary
A malicious project can exploit inadequate command validation in MCP configuration and execute code as the user.
Severity and exploitation evidence
High · 8.8/10 · CVSS 3.1. Severity source.
Exploitation not established: Public original reports and static source inspection establish the reported behavior, not malicious exploitation against users. No exploit, package, model or provider request was executed in this review.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
ZDI identifies insufficient validation of a user-supplied string in mcp.json before a system call; Microsoft classifies the issue as command injection and security-feature bypass.
Conditions required
The victim opens an attacker-controlled project; user interaction is required. Project content must reach the affected MCP configuration handling.
Potential impact
Code execution in the current user’s context, per ZDI; MSRC describes a bypass allowing impersonation.
Affected versions and configurations
Microsoft currently lists VS Code 1.0.0 through before 1.110.1 and Copilot Chat 0.27.0 through before 0.37.1.
Fix and mitigation status
Microsoft names VS Code 1.110.1 and Copilot Chat 0.37.1. Its April 1 revision explicitly says the new VS Code update comprehensively addresses the vulnerability.
Practical next steps
Update VS Code and its Copilot Chat extension to current supported releases containing the named fixes, and review MCP commands in untrusted projects.
Operating lesson
Project-controlled MCP configuration is a process-launch boundary.
Evidence and limits
The original disclosure is 2026-02-10; the November 30 CNA maintenance timestamp does not create a new disclosure. Microsoft’s published exploit-status field says Exploited: No; this is a vendor assessment, not independent proof of absence. No exploit or affected product was executed. Severity is Microsoft CNA CVSS 3.1, distinct from Microsoft’s qualitative product rating. ZDI’s April 2 advisory links this exact CVE and supplies the mcp.json mechanism; its March 5 private report date is not used as first disclosure. The earlier February Microsoft disclosure remains the date. ZDI uses a separate 7.8 local-vector score; the record retains Microsoft 8.8. The April update supersedes stale advice to rely on VS Code 1.109.2. No issue-specific patch was independently mapped.
Sources
- Microsoft original advisory; full CVRF content reviewed
Primary source ·
- Microsoft CVRF vulnerability record
Primary source ·
- Microsoft CNA record
Primary source ·
- ZDI original technical disclosure
Primary source ·
- VS Code 1.110 release and 1.110.1 download page
Primary source ·