Feb 2026: GitHub Copilot and Visual Studio Code Remote Code Execution Vulnerability
CVE-2026-21523 Published on February 10, 2026
GitHub Copilot and Visual Studio Code Remote Code Execution Vulnerability
Time-of-check time-of-use (toctou) race condition in GitHub Copilot and Visual Studio allows an authorized attacker to execute code over a network.
Weakness Type
What is a TOCTTOU Vulnerability?
The software checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. This can cause the software to perform invalid actions when the resource is in an unexpected state. This weakness can be security-relevant when an attacker can influence the state of the resource between check and use. This can happen with shared resources such as files, memory, or even variables in multithreaded programs.
CVE-2026-21523 has been classified to as a TOCTTOU vulnerability or weakness.
Products Associated with CVE-2026-21523
stack.watch emails you whenever new vulnerabilities are published in Microsoft Visual Studio Code or Microsoft Visual Studio Code Copilot Chat Extension. Just hit a watch button to start following.
Affected Versions
Microsoft Visual Studio Code CoPilot Chat Extension:- Version 0.27.0 and below 0.37.1 is affected.
- Version 1.0.0 and below 1.109.2 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.