#VU122626 Time-of-check Time-of-use (TOCTOU) Race Condition in Visual Studio Code - CVE-2026-21523

 

#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


Vulnerability identifier: #VU122626
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-21523
CWE-ID: CWE-367
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Visual Studio Code
Software vendor:
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.


Remediation

Install updates from vendor's website.

External links