#VU122626 Time-of-check Time-of-use (TOCTOU) Race Condition in Visual Studio Code - CVE-2026-21523
Published: February 10, 2026 / Updated: February 19, 2026
Visual Studio Code
Microsoft
Description
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.