Command Injection Vulnerability in GitHub Copilot and Visual Studio Code
CVE-2026-21518
Key Information:
- Vendor
Microsoft
- Vendor
- CVE Published:
- 10 February 2026
Key facts: CVE-2026-21518 is a high severity (CVSS 8.8) vulnerability in Microsoft Visual Studio Code CoPilot Chat Extension and Visual Studio Code. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 1.2%, the estimated probability of exploitation in the next 30 days. Fixed in Microsoft Visual Studio Code CoPilot Chat Extension 0.37.1; Visual Studio Code 1.110.1.
What is CVE-2026-21518?
CVE-2026-21518 is a command injection vulnerability affecting GitHub Copilot and Visual Studio Code, both products developed by Microsoft that enhance software development by providing intelligent code suggestions and debugging tools. This vulnerability arises from improper handling of special characters during command execution, allowing attackers to bypass essential security features over a network. If exploited, it could lead to unauthorized access or execution of arbitrary commands, significantly undermining the integrity and security of applications utilizing these tools. Organizations leveraging these software solutions need to be aware of this vulnerability, as it poses a risk to their development environments and software supply chains.
Potential impact of CVE-2026-21518
-
Unauthorized Access: The vulnerability could enable attackers to gain unauthorized access to internal systems, leading to potential data exposure or manipulation of code repositories.
-
Command Execution: If exploited, it may allow attackers to execute arbitrary commands on the host machine, which could facilitate the installation of malware or other unauthorized software.
-
Supply Chain Compromise: Given that GitHub Copilot and Visual Studio Code are used extensively in software development, this vulnerability could impact the overall security posture of applications built with these tools, potentially allowing threats to propagate through software supply chains.

Human OS v1.0:
Ageing Is an Unpatched Zero-Day Vulnerability.
Remediate biological technical debt. Prime Ageing uses 95% high-purity SIRT6 activation to maintain genomic integrity and bolster systemic resilience.
Affected Version(s)
Microsoft Visual Studio Code CoPilot Chat Extension 0.27.0 < 0.37.1
Visual Studio Code 1.0.0 < 1.110.1
References
More Microsoft vulnerabilities
- CVE-2026-112732: Remote Code Execution Vulnerability in Microsoft Office Visio(CRITICAL)
- CVE-2026-62841: Improper Authentication in Azure Event Grid by Microsoft(CRITICAL)
- CVE-2026-120002: Improper Authorization in Microsoft Office SharePoint(CRITICAL)
- CVE-2026-116945: Heap-based Buffer Overflow in SQL Server by Microsoft(CRITICAL)
- CVE-2026-119948: Stack-based Buffer Overflow in Windows Active Directory by Microsoft(HIGH)
- CVE-2026-124194: Spoofing Vulnerability in Microsoft Office Outlook(MEDIUM)
- CVE-2026-118742: Elevation of Privilege Vulnerability in Azure Front Door by Microsoft(HIGH)
- CVE-2026-118737: Improper Cryptographic Signature Verification in Windows Remote Procedure Call Runtime(HIGH)