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: Visual Studio Copilot RCE Flaw Patched by Microsoft(4 posts)→
More from coding & agent
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- 38 free agent skills distilled from shipping three live AI products — PawelHuryn · 2026-11-29
- Step 5: run evals on synthetic data pre-launch, watch real traces after — PawelHuryn · 2026-11-29
- Agent build costs: Messages API $0.003/msg vs Agent SDK $0.041 in real test — PawelHuryn · 2026-11-29
- Break your agent before attackers do: 6 tests mapped to OWASP LLM Top 10 — PawelHuryn · 2026-11-29
- Step 1: have Claude draft an agent card before building your embedded agent — PawelHuryn · 2026-11-29