CVE-2026-21518
Command Injection in GitHub Copilot and VS Code Enables Bypass
Publication date: 2026-02-10
Last updated on: 2026-02-23
Assigner: Microsoft Corporation
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| microsoft | visual_studio_code | to 1.109.2 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-77 | The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
[{'type': 'paragraph', 'content': "This vulnerability is an improper neutralization of special elements used in a command, also known as 'command injection', found in GitHub Copilot and Visual Studio Code."}, {'type': 'paragraph', 'content': 'It allows an unauthorized attacker to bypass a security feature over a network by exploiting this flaw.'}] [1]
How can this vulnerability impact me? :
The vulnerability can allow an unauthorized attacker to bypass security features remotely, which may lead to unauthorized actions or compromise of the affected software.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
I don't know