Skip to main content

Visual Studio Code EUVDEUVD-2026-73297

| CVE-2026-78461 HIGH
Path Traversal (CWE-22)
2026-09-08 secure@microsoft.com GHSA-w2g5-8p9x-93xj
7.4
CVSS 3.1 · Vendor: microsoft
View

Attack ChainAIDerived

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

  1. Access
    Attacker crafts malicious workspace or repository with traversal paths
  2. Delivery
    Victim opens content in Visual Studio Code
  3. Exploit
    Path traversal bypasses sandbox directory restriction
  4. Execution
    VS Code resolves host file system paths outside workspace root
  5. Impact
    Sensitive host files read and exposed to attacker

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

User interaction is required: the victim must actively open a crafted file, folder, workspace, or remote repository in VS Code. The attacker must control the content being opened (e.g., a malicious repository, a shared workspace file, or a crafted extension). No authentication to the victim's system is required from the attacker's side (PR:N), and no non-default VS Code configuration is specified as a prerequisite. Exploitation is limited by the need for user interaction - passive or background scanning by VS Code does not trigger it. The Changed Scope means the traversal must cross VS Code's internal boundary enforcement, implying VS Code must be performing some form of file resolution or path handling on the attacker-controlled input. Environments using VS Code Remote or Codespaces (where VS Code Server opens remote content automatically) may reduce the effective user-interaction requirement.

Impact

CVSS 7.4 (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N) reflects a meaningful but user-interaction-gated risk: an attacker cannot exploit this silently against idle systems; a victim must open a crafted file, workspace, or remote content. The Scope:Changed and C:H combination is the most serious signal here - successful exploitation can expose host-level secrets (SSH keys, environment files, credentials in adjacent directories) rather than just workspace-scoped data. No EPSS data was provided, KEV is absent, and no public POC is known, all pointing away from opportunistic mass exploitation. However, VS Code's Remote Development, Codespaces, and GitHub Codespaces integrations widen the network-accessible attack surface significantly, since malicious repositories or extension marketplace content could serve as the delivery vehicle. The AC:L metric indicates no special configuration is required on the victim side, which lowers the practical bar once a user is convinced to open attacker-controlled content. Overall: a real priority for developer-facing environments and CI/CD pipelines where VS Code opens untrusted code.

Exploit ScenarioDerived

An attacker publishes a malicious GitHub repository containing a crafted VS Code workspace configuration or devcontainer definition with path components that traverse outside the repository root. A developer clones and opens the repository in VS Code, triggering the traversal during workspace initialization; VS Code reads and potentially exposes files such as ~/.ssh/id_rsa or ~/.aws/credentials to the attacker-controlled content handler. No public POC exists at time of analysis, but the technique is well-understood for this CWE class.

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

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

Alert me

AnalysisAIv1 – Sep 08, 2026

Path traversal in Visual Studio Code versions prior to 1.136.2 enables a remote unauthenticated attacker - contingent on user interaction - to escape the editor's restricted directory boundary and read sensitive files from the host system, effectively bypassing a security feature such as workspace trust or sandbox isolation. The vulnerability carries a CVSS 7.4 with Scope:Changed and C:H, reflecting that the impact crosses from VS Code's own context into broader host file system access. No public exploit code or CISA KEV listing has been identified at time of analysis.

RemediationAI

Upgrade Visual Studio Code to version 1.136.2 or later, which contains the vendor-released patch per the MSRC advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-78461. VS Code auto-updates by default on most desktop installations; verify the installed version via Help > About. For environments where immediate upgrade is not possible, restrict the opening of untrusted workspaces and enable VS Code's Workspace Trust feature (already default in recent versions) to prompt before executing workspace-controlled settings - this limits but does not eliminate the attack surface. In CI/CD pipelines that use VS Code Server or Codespaces, gate which repositories can be opened and enforce network egress controls to prevent exfiltration of traversed files. Note that Workspace Trust is a compensating control, not a fix: upgrade remains the definitive remediation.

Affected VersionsENISA

Visual Studio Code 1.0.0 <1.136.2

Affected Packages

euvd visual_studio_code fix: 1.136.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) describes failures where user-controlled path components (e.g., '../') traverse beyond an intended root, accessing files the application should not expose. In VS Code's case, the network-accessible attack surface likely involves crafted workspace configurations, remote repository content, or extension-mediated file references that the editor resolves without adequate canonicalization or boundary checks. The Changed Scope (S:C) metric indicates the traversal escapes VS Code's own workspace sandbox and reaches the underlying OS file system, which is a separate security authority. Affected CPE covers Visual Studio Code 1.0.0 through 1.136.1, as established by EUVD-2026-73297 and the MSRC 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 7.4 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
ENISA EUVD HIGH
vuln.today AI 7.4 HIGH

Network delivery via crafted content, user interaction gates exploitation, scope escapes VS Code sandbox to host filesystem yielding high confidentiality; no write or availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

Primary rating from Vendor (microsoft).

CVSS VectorVendor: microsoft

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
Sep 08, 2026 - 18:35 EUVD
CVE Published
Sep 08, 2026 - 18:20 nvd
HIGH 7.4

DescriptionCVE.org

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

Executive ViewAI

Why It Matters

Visual Studio Code versions before 1.136.2 contain a path traversal vulnerability that enables attackers to extract sensitive files-including source code, API keys, and credentials-from developer workstations if users open untrusted workspace configurations. Given VS Code's ubiquity across development teams, this vulnerability poses a material risk to intellectual property, regulatory compliance (secret management), and supply chain security.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
1.1%
Top 38% exploitable
Prevalence
High
dominant code editor across developer and enterprise engineering teams
Threat Intel
1
1 sources
Vendor Status
Publicly Disclosed:No
Exploited:No
Latest Software Release:Exploitation Less Likely
Data Quality
6 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 1.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
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +37
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.

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-2026-47281 CRITICAL
9.6 Jun 09

Privilege escalation in Microsoft Visual Studio Code allows remote unauthenticated attackers to elevate privileges over

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-121663 HIGH
8.8 Nov 10

Security feature bypass in Visual Studio Code before 1.145.3 allows an unauthenticated remote attacker to evade a securi

CVE-2026-119975 HIGH
8.8 Nov 10

Cross-site scripting in Visual Studio Code before 1.145.3 can let unauthenticated, network-reachable attackers run attac

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

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