CVE-2026-21523
8.0Microsoft · Visual Studio and Copilot Chat Extension
A TOCTOU race condition in the GitHub Copilot Chat extension for Visual Studio Code allows an authenticated attacker to execute code over a network.
Executive summary
A race condition vulnerability in the GitHub Copilot Chat extension for Visual Studio Code presents a significant risk of remote code execution for authenticated users.
Vulnerability
The flaw is a Time-of-check Time-of-use (TOCTOU) race condition, categorized as CWE-367, which can be triggered by an authorized (authenticated) attacker to achieve remote code execution. The vulnerability is reachable over a network, requiring the attacker to have low privileges.
Business impact
The ability for an authenticated attacker to execute arbitrary code poses a critical threat to the integrity and confidentiality of the development environment. Successful exploitation could lead to full system compromise, unauthorized data access, or the deployment of malicious payloads within the software supply chain. With a CVSS score of 8.0, this high-severity vulnerability warrants immediate attention to prevent potential lateral movement within the corporate network.
Remediation
Immediate Action: Update the Microsoft Visual Studio Code application to version 1.110.1 or later and the Copilot Chat extension to version 0.37.1 or later.
Proactive Monitoring: Monitor developer workstations and CI/CD server logs for anomalous process execution patterns or unexpected network connections originating from the Visual Studio environment.
Compensating Controls: Restrict access to internal development environments and ensure that only authorized users have the ability to interact with network-accessible development tools.
Exploitation status
Public Exploit Available: Unknown.
Analyst recommendation
Given the high CVSS severity and the potential for remote code execution, organizations must prioritize patching the affected Visual Studio Code and Copilot Chat components. System administrators should verify that all developer machines are updated to the specified versions immediately to eliminate the risk of exploitation.