Command injection in Visual Studio Code - CVE-2026-81380

 

Command injection in Visual Studio Code - CVE-2026-81380

Published: September 9, 2026


Vulnerability identifier: #VU148275
CSH Severity: Medium
CVSS v4: 5.6 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-81380
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to improper neutralization of special elements used in a command in GitHub Copilot agent mode when processing attacker-controlled commands. A remote attacker can cause GitHub Copilot agent mode to send workspace data and environment variables to an attacker-controlled service to disclose sensitive information.

User interaction is required.


Affected software

Visual Studio Code

How to mitigate CVE-2026-81380

Install security update from vendor's website.

Visual Studio Code - update to 1.136.2

External References

Related Security Bulletins