AI Wiki · Mediocre Security
IncidentIncidents

Visual Studio Copilot CVE-2026-103572

A path-check bypass that let Copilot in Visual Studio and SQL Server Management Studio rewrite its own MCP and settings files, leading to code execution; patched Oct 13 2026.

What happened

The researcher behind the Embrace The Red blog found that Copilot in Microsoft’s Visual Studio checked file paths before letting the agent edit sensitive files, but Windows ignores a trailing dot in file names. A write to settings.json. passed the check and landed in settings.json, so Copilot could rewrite its own MCP and settings files and get arbitrary commands run. The check lives in a shared Copilot DLL, so SQL Server Management Studio and older Visual Studio releases, including 2022, were affected as well. The bug can also be triggered through indirect prompt injection.

The researcher reported it on Aug 4 2026. Microsoft confirmed it on Sep 16, rated it an Important remote code execution flaw (CVSS 8.8 per the researcher’s write-up) and fixed it on Patch Tuesday, Oct 13 2026, but paid no bounty. The write-up says the fix normalizes paths, which should also block the related ..\ traversal variants it found. There is no report of exploitation in the wild.

Timeline

Every dated event in the wiki that involves Visual Studio Copilot CVE-2026-103572, newest first.

Connections

Visual Studio Copilot CVE-2026-103572 and everything one link away. Drag to move, scroll to zoom, click a node to open it.Open in the full graph →

What links here

Company Microsoft

Sources

  1. Embrace The Red, “Visual Studio Copilot and SSMS Remote Code Execution (CVE-2026-103572)”, Oct 13 2026
  2. Adversa AI, “Top AI coding agent security resources — November 2026”, Nov 2 2026