Skip to main content

GitHub Copilot CVE-2026-45482

| EUVDEUVD-2026-35547 HIGH
Path Traversal (CWE-22)
2026-06-09 secure@microsoft.com GHSA-f78m-9xhc-p52v
8.4
CVSS 3.1 · Vendor: microsoft
Temporal: 7.3
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Stage malicious workspace or repo
  2. Delivery
    Developer opens project in VS Code
  3. Exploit
    Copilot/VS Code resolves traversal path
  4. Execution
    Bypass sandbox boundary
  5. Persist
    Read or write protected files
  6. Impact
    Exfiltrate credentials and source

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires local-vector delivery on a machine running an affected build of Visual Studio Code with the GitHub Copilot extension installed, meaning the attacker needs a way to place attacker-controlled input - such as a malicious workspace, repository, project file, or extension-channel message - in front of the vulnerable path-handling routine. CVSS PR:N and UI:N indicate no prior privileges and no explicit user interaction are required once that input is processed, but the AV:L vector means the attacker cannot reach the flaw purely over the network and must rely on the developer opening or loading the malicious content. Limiting factors include the need for the GitHub Copilot extension to be present and enabled, the user opening untrusted project content (which Workspace Trust may gate), and the specific security feature whose bypass is in scope not being independently documented in the supplied data.

Impact

The CVSS vector AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H describes a locally exploitable flaw with no privileges and no user interaction needed once code can run on the host, yielding a high 8.4 score driven by full CIA impact rather than network reach. The AV:L vector materially limits real-world risk because an attacker must already have a foothold - for example a malicious workspace, repository, or extension payload that Copilot/VS Code processes - so this is more relevant to supply-chain and developer-trust threat models than to mass internet exploitation. No EPSS score, KEV listing, or POC was provided, and no public exploit is identified at time of analysis, suggesting this is currently a patch-and-monitor priority rather than an emergency. Key gap: the only reference is the MSRC advisory stub, so independently confirmed fixed builds, affected version ranges, and the precise security feature being bypassed are not visible in the supplied data and should be validated directly with Microsoft.

Exploit ScenarioDerived

A developer is socially engineered or directed to open a malicious repository, workspace folder, or shared Live Share session crafted to feed traversal sequences into a Copilot or VS Code path-handling routine. When the editor or Copilot resolves the attacker-controlled reference it escapes the intended sandbox and reads, overwrites, or executes content outside the workspace, granting access to secrets, SSH keys, or configuration files on the developer's host. No public exploit identified at time of analysis, but the low attack complexity and lack of required interaction make POC development straightforward once the affected code path is disclosed.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 09, 2026

Security feature bypass via path traversal in GitHub Copilot and Visual Studio Code allows a local unauthorized attacker to escape a restricted directory and reach files or resources that should be inaccessible. The flaw is tracked under CWE-22 with a CVSS 3.1 base score of 8.4 (AV:L/AC:L/PR:N/UI:N) reflecting high confidentiality, integrity, and availability impact from local exploitation. There is no public exploit identified at time of analysis and the issue is not listed in CISA KEV.

RemediationAI

Apply the Microsoft-supplied update for Visual Studio Code and the GitHub Copilot extension as published in the MSRC advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-45482; exact fixed version numbers were not included in the supplied data, so cite the build IDs listed in that advisory when planning rollout. Patch available per vendor advisory. As compensating controls until updates are deployed, restrict developers from opening untrusted workspaces by enabling VS Code Workspace Trust in restricted mode (which disables many extension capabilities and may reduce Copilot functionality), disable or unload the GitHub Copilot extension on machines that handle sensitive secrets (trade-off: loss of AI assistance), and avoid cloning or opening repositories from unvetted sources since local-vector exploitation typically requires attacker-influenced project content. Endpoint monitoring for unexpected file reads outside workspace roots by Code.exe / code processes can serve as a detection backstop.

Affected VersionsENISA

Microsoft Visual Studio Code CoPilot Chat Extension 0.27.0 <1.123.1

Affected Packages

microsoft visual_studio_code_copilot_chat_extension_1_123_1 fix: Microsoft Visual Studio Code CoPilot Chat Extension 1.123.1
euvd microsoft_visual_studio_code_copilot_chat_extension fix: 1.123.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in microsoft, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability sits in the GitHub Copilot extension and the Visual Studio Code editor, both Microsoft developer tooling that processes workspace files, configuration, and AI prompt context on the local user's machine. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) indicates that input used to construct a filesystem path is not sufficiently normalized or canonicalized, so sequences such as '../' or absolute paths can break out of an intended sandbox or workspace root. In a Copilot/VS Code context this typically manifests in features that resolve file references from prompts, project metadata, settings, or extension messages, where the path-handling routine trusts attacker-influenced input to remain inside an allowlisted directory. CPE data was not included in the supplied intelligence, so exact build identifiers must be retrieved from the Microsoft Security Response Center advisory.

Know when Visual Studio Code gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (microsoft) PRIMARY 8.4 HIGH
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
ENISA EUVD HIGH
CIRCL (temporal) 7.3 HIGH

Primary rating from Vendor (microsoft).

CVSS VectorVendor: microsoft

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Improper limitation of a pathname to a restricted directory ('path traversal') in GitHub Copilot and Visual Studio Code allows an unauthorized attacker to bypass a security feature locally.

Executive ViewAI

Why It Matters

GitHub Copilot and Visual Studio Code contain a path traversal vulnerability (CVE-2026-45482, CVSS 8.4) that allows unauthenticated local attackers to bypass security controls and access restricted files. Development teams using these tools face exposure of source code, credentials, and intellectual property, with no vendor patch currently available.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict tool access by role and business need, implement OS-level file system permissions (ACLs) to isolate sensitive repositories, disable cloud-sync and remote collaboration features on affected systems, establish filesystem access logging and monitoring for exploitation attempts, and segment development environments by data sensitivity level.

Threat Intelligence Overview

EPSS Score
0.1%
Top 79% exploitable
Threat Intel
1
1 sources
Vendor Action
See Below
Required. The vulnerability documented by this CVE requires customer action to resolve.
Vendor Status
Publicly Disclosed:No
Exploited:No
Latest Software Release:Exploitation Less Likely
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: +5

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Related Vulnerabilities in Visual Studio Code Security Feature Bypass Flaws

View all 4
CVE-2022-41034 HIGH POC
7.8 Oct 11

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent

CVE-2022-30129 HIGH POC
8.8 May 10

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 8.8), this vulnerability is remotely e

CVE-2026-81376 CRITICAL
9.6 Sep 08

Security-feature bypass in Microsoft Visual Studio Code before 1.136.2 lets a remote, unauthenticated attacker defeat a

CVE-2026-102238 CRITICAL
9.6 Oct 13

Remote code execution in Visual Studio Code (versions 1.0.0 up to but not including 1.141.1) is achievable through a pat

CVE-2021-43891 HIGH
7.8 Dec 15

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent

CVE-2026-57102 HIGH
8.8 Jul 14

Security-feature bypass in Microsoft Visual Studio Code lets a remote attacker deliver functionality from an untrusted c

CVE-2026-59113 HIGH
8.8 Aug 11

Remote code execution in Visual Studio Code (versions 1.0.0 through 1.132.0) is enabled by a missing authorization check

CVE-2026-69370 HIGH
8.8 Oct 13

Command injection in Visual Studio Code 1.0.0 through 1.141.0 allows an unauthenticated remote attacker to execute arbit

CVE-2026-70336 HIGH
8.8 Aug 11

Remote code execution in Microsoft Visual Studio Code allows a network-based attacker to inject and execute arbitrary co

CVE-2026-102235 HIGH
8.8 Oct 13

Remote code execution in Visual Studio Code versions 1.0.0 through 1.141.1 allows an unauthenticated, network-positioned

CVE-2026-78462 HIGH
8.8 Sep 08

Authorization bypass in Visual Studio Code versions 1.0.0 through 1.136.1 allows an unauthenticated network attacker to

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy