mcp-cve-project

CVE-2026-21518 | Visual Studio Code / GitHub Copilot (mcp.json) | High | 8.8

CVE Information

Field Value
CVE / NVD CVE-2026-21518
EPSS score 0.013570000 (FIRST EPSS, 2026-06-30)
Date (index) 2026-02-10
Affected product (index) Microsoft Visual Studio Code and GitHub Copilot (mcp.json handling)
GHSA ID N/A (Microsoft MSRC advisory)
OWASP MCP Top 10 (2025) MCP04 — Software Supply Chain Attacks & Dependency Tampering
Published / disclosed 2026-02-10
Ecosystem N/A (desktop IDE)
Component VS Code MCP configuration (mcp.json)
CVSS score 8.8 (v3.1, Microsoft CNA)
CWE CWE-77
Affected versions Visual Studio Code < 1.109.2 (per NVD CPE)
Fixed versions 1.109.2 and later (per NVD / MSRC)
Fix status Patched
Exploit status Public CVE record

CVE Breakdown


What is the vulnerability?

Improper neutralization of special elements used in a command (command injection) in GitHub Copilot and Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network. The flaw is in handling of mcp.json files: user-supplied strings are used in system calls without adequate validation, enabling code execution in the context of the current user when a malicious project is opened.

Attack prerequisites / exposure

User interaction is required: the victim must open a malicious project (or workspace) that ships or updates mcp.json with attacker-controlled command strings. Remote attack over a network is possible per Microsoft CNA vector (UI:R).

CVE is because of what bug?

Lack of validation on MCP server launch parameters read from mcp.json before invoking OS commands.

MCP-specific impact / why it matters

mcp.json is the standard VS Code mechanism for registering MCP servers (stdio commands and args). Poisoned project config turns repository trust into local RCE—similar in class to Cursor/Claude Code MCP config swap issues (for example CVE-2025-54136, CVE-2025-59536).

Where was the bug? (source + snippet)