Skip to content
AI / LLM Advisory Intermediate CVE-2025-62453

GitHub Copilot and Visual Studio Code Security Feature Bypass Vulnerability (CVE-2025-62453)

GitHub Copilot and Visual Studio Code fail to properly validate generative AI output, allowing an authenticated attacker to bypass sensitive file protections. An attacker with access to a repository could place a malicious file and wait for a user to ask Copilot to review it, potentially causing Copilot to expose protected files.

Name: Lam Jun Rong Follow

Originally disclosed on Microsoft

High 5.0 View original

Description

Improper validation of generative ai output in GitHub Copilot and Visual Studio Code allows an authorized attacker to bypass a security feature locally.

FAQ

What kind of security feature could be bypassed by successfully exploiting this vulnerability? An attacker who successfully exploited this vulnerability could bypass Visual Studio Code sensitive file protections.

FAQ

According to the CVSS metric, the attack vector is local (AV:L), privileges are required (PR:L) and user interaction is required (UI:R). How could an attacker exploit this security feature bypass vulnerability? The attack itself is carried out locally by a user with authentication to the targeted repo. An authenticated attacker could place a malicious file in the targeted repo and then wait for the user to prompt Copilot to review the file.

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 Name: Lam Jun Rong. 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

Impact

An attacker could bypass Visual Studio Code's sensitive file protections, potentially leading to unauthorised access to sensitive files, though the attack requires local access, authentication, and user interaction.

What the attacker needed

Authenticated access to the targeted repository; victim prompts Copilot to review the malicious file; local access to the target environment

How it was found

  1. An authenticated attacker places a malicious file in the targeted repository.
  2. The attacker waits for the user to prompt Copilot to review the file.

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.

This is a flaw in how GitHub Copilot and Visual Studio Code handle the text that an AI model produces. Normally, VS Code tries to stop the AI from reading certain sensitive files, but the check on the AI's output is too weak. An attacker who can add a file to a shared code repository could trick Copilot into ignoring that protection when a victim asks it to review the file.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.