Microsoft Visual Studio Code CoPilot Chat Security Feature Bypass Vulnerability (CVE-2025-62449)
A path traversal flaw in the Visual Studio Code CoPilot Chat extension lets an authorised attacker bypass the editor's sensitive file protections. Exploiting it could expose sensitive information, allow modification of code in the repository, and possibly affect availability.
Originally disclosed on Microsoft
Description
Improper limitation of a pathname to a restricted directory ('path traversal') in Visual Studio Code CoPilot Chat Extension 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 metrics, successful exploitation of this vulnerability could lead to major loss of confidentiality (C:H), and integrity (I:H), and some loss of availability (A:L). What does that mean for this vulnerability? An attacker who successfully exploited this vulnerability could view sensitive information (Confidentiality) and modify code in the repo, (Integrity), and they might be able to interfere with availability of the code (Availability).
Visual Studio Code CoPilot Chat Extension
Visual Studio Code CoPilot Chat Extension
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
Root cause
Likely the extension did not properly limit file paths to an allowed directory, so a crafted path could reach files it should have been blocked from.
Impact
Successful exploitation could lead to major loss of confidentiality and integrity and some loss of availability, though the attacker must already be authorised and the attack is local.
What the attacker needed
Authorised local access to the extension
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.
Some programs try to stop you from opening certain files, for example secret configuration files. This bug let someone get around that restriction in a code editor add-on. Once past it, they could read private information and change code in the project.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.