Feb 2026: GitHub Copilot and Visual Studio Code Remote Code Execution Vulnerability
CVE-2026-21523 Published on February 10, 2026

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.

Vendor Advisory NVD

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

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2026-21523 are published in Microsoft Visual Studio Code:

 

Affected Versions

Microsoft Visual Studio Code:

Exploit Probability

EPSS
0.03%
Percentile
7.89%

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.