Skip to content
RCE Advisory Advanced CVE-2026-81380

GitHub Copilot and Visual Studio Code Information Disclosure Vulnerability (CVE-2026-81380)

A command injection flaw in GitHub Copilot and Visual Studio Code lets an unauthorised attacker disclose information over a network. Successful exploitation could let an attacker obtain sensitive data from the user's development environment, such as workspace data and environment variables, by making Copilot agent mode send it to a service the attacker controls.

Gustavo Uhlein Follow

Originally disclosed on Microsoft

High 5.3 View original

Description

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

FAQ

According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to have a deep understanding of the system. Successful exploitation is not guaranteed and depends on a combination of factors that might include the environment, system configuration, and the presence of additional security measures.

FAQ

What type of information could be disclosed by this vulnerability? Successful exploitation could allow an attacker to obtain sensitive information from the user's development environment, including workspace data and environment variables, by causing GitHub Copilot agent mode to send that information to an attacker-controlled service.

GitHub Copilot and Visual Studio Code

GitHub Copilot and Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Gustavo Uhlein. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely improper neutralisation of special elements in a command, allowing injected instructions to be executed within the Copilot agent workflow.

Impact

An attacker could disclose sensitive information from the user's development environment, including workspace data and environment variables, though exploitation is not guaranteed and depends on environment, configuration and other security measures.

What the attacker needed

Deep understanding of the system; specific environment and configuration

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Command injection means a program builds a system command out of input it does not properly clean, so an attacker can slip in extra instructions. Here the affected tools are GitHub Copilot and Visual Studio Code, and the worry is that a crafted input makes Copilot's agent mode ship the developer's files and settings off to someone else. The text gives no technical detail on how this is done.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.