Home › Intelligence › Brief
VULNERABILITY BRIEF 🟠 High Vulnerability

Critical Remote Code Execution in Microsoft Visual Studio Code (CVE-2026-21518) via mcp.json Command Injection

A command‑injection flaw (CVE‑2026‑21518) in Microsoft Visual Studio Code enables remote code execution when a user opens a crafted mcp.json project file. The vulnerability scores 7.8 on CVSS and is mitigated by a Microsoft‑issued update. TPRM teams must treat it as a supply‑chain risk for any third‑party software development partner.

Verisq™ Intelligence · 📅 April 03, 2026 · 📰 zerodayinitiative.com
🟠
Severity
High
VU
Type
Vulnerability
🎯
Confidence
High
🏢
Affected
2 sector(s)
✅
Actions
5 recommended
📰
Source
zerodayinitiative.com

Critical Remote Code Execution in Microsoft Visual Studio Code (CVE‑2026‑21518) via mcp.json Command Injection

What It Is – A newly disclosed vulnerability (CVE‑2026‑21518) in Microsoft Visual Studio Code allows an attacker to inject arbitrary commands through a crafted mcp.json file. When a user opens a malicious project, the unvalidated string is passed to a system call, enabling remote code execution in the context of the current user.

Exploitability – The flaw requires user interaction (opening a malicious project) but can be weaponized in phishing or supply‑chain attacks. A proof‑of‑concept has been released by the researchers; no public exploit‑as‑a‑service observed yet. CVSS 7.8 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Affected Products – Microsoft Visual Studio Code (all supported platforms).

TPRM Impact –

  • Development teams across any third‑party vendor may inadvertently introduce malicious mcp.json files into build pipelines, exposing downstream customers.
  • Compromise of a developer’s workstation can lead to credential theft, code tampering, and insertion of backdoors into shipped software, creating a supply‑chain risk.

Recommended Actions –

  1. Deploy Microsoft’s patch for CVE‑2026‑21518 immediately on all VS Code installations.
  2. Enforce strict “trusted project” policies: only open projects from verified sources and scan mcp.json files with endpoint protection.
  3. Update CI/CD pipelines to reject unsigned or unknown mcp.json artifacts before build.
  4. Conduct a rapid inventory of all developer workstations and remote environments that still run vulnerable VS Code versions.
  5. Communicate the risk to third‑party vendors and require proof of remediation in contractual security clauses.

Source: Zero Day Initiative Advisory – ZDI‑26‑253

📰 Original Source
http://www.zerodayinitiative.com/advisories/ZDI-26-253/ ↗

This Verisq Intelligence Brief is an independent analysis. Read the original reporting at the link above.

Vulnerability exposure

Is this CVE in your supply chain?

Verisq matches published vulnerabilities against the software your vendors run, so you know which relationships this touches before the next review.

See vendor exposure →