SB20260210107 - Multiple vulnerabilities in Microsoft GitHub Copilot and Visual Studio
Published: February 10, 2026 Updated: February 19, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 4 secuirty vulnerabilities.
1) Command Injection (CVE-ID: CVE-2026-21518)
The vulnerability allows a remote attacker to execute arbitrary commands on the system.
The vulnerability exists due to insufficient input validation in GitHub Copilot and Visual Studio Code where workspace trust was not always demanded to start MCP servers. A remote attacker can pass specially crafted data to the application and execute arbitrary commands.
2) Command Injection (CVE-ID: CVE-2026-21256)
The vulnerability allows a remote attacker to execute arbitrary commands on the system.
The vulnerability exists due to insufficient input validation in GitHub Copilot and Visual Studio. A remote attacker can pass specially crafted data to the application and execute arbitrary commands.
3) Command Injection (CVE-ID: CVE-2026-21257)
The vulnerability allows a remote attacker to execute arbitrary commands on the system.
The vulnerability exists due to insufficient input validation in GitHub Copilot and Visual Studio. A remote user can pass specially crafted data to the application and execute arbitrary commands.
4) Time-of-check Time-of-use (TOCTOU) Race Condition (CVE-ID: CVE-2026-21523)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a race condition in GitHub Copilot and Visual Studio where terminal.integrated.autoReplies can cause commands to be repeatedly auto-executed in previously trusted folders, and the behavior persists across folders until a completely new window is opened.. A remote user can execute arbitrary code on the system.
Remediation
Install update from vendor's website.
References
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-21518
- https://github.com/microsoft/vscode/security/advisories/GHSA-6xq8-9qf3-p6qv
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-21256
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-21257
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-21523
- https://github.com/microsoft/vscode/security/advisories/GHSA-3pwg-f3hj-wp8p