CVE-2025-66389

GitHub Copilot 1.372.0 Filesystem Access Outside Workspace via File-Handler URI

Published Jun 22, 2026 CVSS 3.1 · 7.5 High EPSS 1.2% KEV · Not listed
Description
GitHub Copilot 1.372.0 allows filesystem access outside of a workspace folder (without user approval) via a file-handler URI parameter to fetch_webpage. Therefore, exfiltration could occur if there is indirect prompt injection.

Analysis

AI-generated

Technical impact

GitHub Copilot 1.372.0 contains a flaw that permits the fetch_webpage tool to read files outside the designated workspace using a file-handler URI parameter. This bypasses user approval and could enable an attacker to exfiltrate sensitive files if indirect prompt injection is achieved. The weakness is characterized by file or directory traversal (CWE‑552).

Affected Systems

The vulnerability affects the GitHub Copilot extension, specifically version 1.372.0. The product is distributed by GitHub (Microsoft).

Risk and Exploitability

The CVSS score of 7.5 indicates a high impact for the flaw that allows read access to files outside the workspace without user approval. The impact remains significant due to potential data exfiltration if indirect prompt injection is achieved. The exploit requires that an attacker can influence the Copilot input – for example through an indirect prompt injection scenario. With no EPSS data and no listing in CISA KEV, the current exploitation risk is uncertain but the potential consequences warrant prompt action.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade GitHub Copilot to the latest version that addresses file access restrictions
  • If no patch is available, disable or remove the Copilot extension from Visual Studio Code
  • Configure VS Code settings to block or prevent the use of file-handler URIs in the Copilot chat command

Generated by OpenCVE AI on June 22, 2026 at 19:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title GitHub Copilot 1.372.0 Filesystem Access Outside Workspace via File-Handler URI
Type Values Removed Values Added
Title Filesystem Exfiltration via Unauthorized File-Handler URI in GitHub Copilot
Weaknesses CWE-200
CWE-284
Type Values Removed Values Added
Weaknesses CWE-552
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Microsoft
Microsoft copilot
Vendors & Products Microsoft
Microsoft copilot
Type Values Removed Values Added
Title Filesystem Exfiltration via Unauthorized File-Handler URI in GitHub Copilot
Weaknesses CWE-200
CWE-284
Type Values Removed Values Added
Description GitHub Copilot 1.372.0 allows filesystem access outside of a workspace folder (without user approval) via a file-handler URI parameter to fetch_webpage. Therefore, exfiltration could occur if there is indirect prompt injection.
References
Weaknesses
  • CWE-552

    Files or Directories Accessible to External Parties

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jun 22, 2026, 4:02 PM
Reserved
Nov 28, 2025, 12:00 AM
Status
Analyzed
Published
Jun 22, 2026, 2:16 PM
Modified
Oct 12, 2026, 10:10 PM