Filename-only guard in VS Copilot led to high-severity RCE, patched this Patch Tuesday

wunderwuzzi23 · x · 2026-10-14

Security researcher wunderwuzzi shared the guard code in Visual Studio Copilot meant to prevent Copilot from writing to mcp. and settings.visualstudio.: EditsFunctionHandler.GetEditConfirmationTypeAsync relies only on Path.GetFileName with exact name comparisons and EndsWith checks.

He posed it as a "spot the defect" challenge; the flaw led to a high-severity RCE in Visual Studio and SQL Server Management Studio (CVE-2026-103572), patched in this Patch Tuesday release, with a full write-up to follow.

Related event: Microsoft Patch Tuesday Fixes High-Risk RCE in Visual Studio Copilot(2 posts)→

Original post →

More from coding & agent

coding & agent channel →