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.
Originally disclosed on Microsoft
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
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
- An authenticated attacker places a malicious file in the targeted repository.
- 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.