Skip to main content
EPSS 1.4%top 29%

CVE-2026-21518: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in Microsoft Microsoft Visual Studio Code CoPilot Chat Extension

0
High
VulnerabilityCVE-2026-21518cvecve-2026-21518cwe-77gcve
Published: 02/10/2026 (02/10/2026, 17:51:15 UTC)
Source: CVE Database V5
Vendor/Project: Microsoft
Product: Microsoft Visual Studio Code CoPilot Chat Extension

Description

Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C

Affected software

Affected versions
=0.27.00.27.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/26/2026, 20:13:51 UTC

Technical Analysis

This vulnerability (CWE-77) in the Microsoft Visual Studio Code CoPilot Chat Extension (version 0.27.0) involves improper neutralization of special elements in commands, enabling command injection. This flaw allows an attacker to bypass security controls remotely without privileges and with user interaction. The CVSS 3.1 score of 8.8 reflects high impact on confidentiality, integrity, and availability. Microsoft has published an official fix to remediate this vulnerability.

Potential Impact

Successful exploitation can lead to unauthorized command execution on the affected system, resulting in full compromise of confidentiality, integrity, and availability of the environment where the vulnerable extension is used. The attacker can bypass security features remotely, potentially executing arbitrary commands with the privileges of the user running the extension.

Mitigation Recommendations

An official fix is available from Microsoft. Users of Microsoft Visual Studio Code CoPilot Chat Extension version 0.27.0 should apply the vendor-provided update immediately to remediate this vulnerability. Refer to the Microsoft Security Response Center advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-21518 for the official patch and detailed remediation instructions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
microsoft
Date Reserved
2025-12-30T18:10:54.845Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
official-fix
Vendor Advisory Urls
[{"url":"https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-21518","vendor":"Microsoft"}]

Threat ID: 698b76064b57a58fa120a695

Added to database: 02/10/2026, 18:16:38 UTC

Last enriched: 05/26/2026, 20:13:51 UTC

Last updated: 09/10/2026, 19:36:52 UTC

Views: 294

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses