Skip to main content

Visual Studio Code CVE-2026-102238

| EUVDEUVD-2026-100600 CRITICAL
Path Traversal (CWE-22)
2026-10-13 secure@microsoft.com GHSA-hccq-3qmx-2g7f
9.6
CVSS 3.1 · Vendor: microsoft
View

Attack ChainAIDerived

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

  1. Access
    Host malicious workspace/repo
  2. Delivery
    Lure developer to open it
  3. Exploit
    Trigger path traversal on open
  4. Execution
    Write/execute file outside intended directory
  5. Impact
    Code execution on developer host

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 a victim to open attacker-controlled content in Visual Studio Code - a malicious workspace, folder, repository, or project file whose internal pathnames traverse outside the restricted directory (CWE-22), leading to code execution. The primary limiting factor is the required user interaction (UI:R): the attack is not triggered automatically and depends on social engineering to get a developer to open the crafted project in an affected version (1.0.0 up to but not including 1.141.1). No authentication is required of the attacker (PR:N), but the victim-interaction step and the need to deliver crafted content meaningfully constrain real-world exploitation compared to a zero-click remote flaw.

Impact

This is a genuinely high-priority flaw that warrants prompt patching, though several real-world signals temper the raw 9.6 score. The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H) describes a network-reachable, low-complexity, unauthenticated path traversal that chains to code execution with a scope change and full confidentiality/integrity/availability impact - consistent with the description of an 'unauthorized attacker' executing code over a network. The single most important mitigating signal is UI:R: exploitation requires victim interaction, which for an editor like VS Code almost always means the user opening a malicious workspace, folder, repository, or file. EPSS is not provided, the CVE is NOT in CISA KEV, and no public proof-of-concept is referenced, so there is no evidence of active or at-scale exploitation. The net picture is a high-severity, patch-worthy vulnerability whose real-world risk is gated by the social-engineering step of getting a developer to open attacker-controlled content, rather than a wormable, zero-click internet-facing exposure. Note a mild tension to verify: the CVSS labels this AV:N while the realistic delivery is a victim opening local/remote project content - the 'network' vector reflects attacker-supplied content delivered over a network and consumed by the victim, not direct remote service exploitation.

Exploit ScenarioDerived

An attacker crafts a malicious repository, workspace, or project archive containing files whose paths traverse outside the intended directory, then lures a developer into cloning or opening it in Visual Studio Code. When the victim opens the project, the path traversal lets attacker-controlled content be written or executed outside the sandboxed location, resulting in code execution on the developer's machine. No public exploit is identified at time of analysis, and exploitation depends on the user opening the attacker's content (UI:R).

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.7% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 13, 2026

Remote code execution in Visual Studio Code (versions 1.0.0 up to but not including 1.141.1) is achievable through a path traversal flaw when a victim opens a crafted workspace, folder, or repository containing malicious pathnames that escape the intended restricted directory. The attack is unauthenticated (PR:N) but requires user interaction (UI:R), and the scope change (S:C) alongside high confidentiality, integrity, and availability impacts yields a CVSS score of 9.6. Microsoft has released a vendor patch (1.141.1); no public exploit code has been identified at time of analysis, though the severity warrants prompt patching.

RemediationAI

Vendor-released patch: 1.141.1 - upgrade to Visual Studio Code 1.141.1 or later. The vendor advisory is at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-102238. Until patching is possible, as a compensating control, avoid opening workspaces, folders, repositories, or project files from untrusted sources, because exploitation requires the victim to open crafted content (UI:R). This may restrict legitimate workflow but reduces exposure. No other specific workarounds are provided in the available intelligence.

Affected VersionsENISA

Visual Studio Code 1.0.0 <1.141.1

Affected Packages

euvd visual_studio_code fix: 1.141.1

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

Visual Studio Code is a source code editor that supports opening workspaces, folders, repositories, or project files. The vulnerability is a path traversal (CWE-22) where the application fails to properly limit pathnames to a restricted directory. An attacker can craft content that includes path sequences escaping the intended directory, which can lead to code execution in the context of the user opening the content. The CVSS vector indicates a scope change (S:C), meaning the vulnerable component impacts resources beyond its security scope. The affected version range is 1.0.0 to before 1.141.1 as reported by EUVD; no CPE strings were provided in the available intelligence.

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 9.6 CRITICAL
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
ENISA EUVD HIGH
vuln.today AI 9.6 CRITICAL

Attacker-supplied content delivered over a network (AV:N) but consumed only when the victim opens it (UI:R); no attacker auth (PR:N); traversal escaping the editor boundary justifies S:C with full C/I/A impact via code execution.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/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
High
Availability
High

Lifecycle Timeline

2
Patch available
Oct 13, 2026 - 21:05 EUVD
CVE Published
Oct 13, 2026 - 20:17 nvd
CRITICAL 9.6

DescriptionCVE.org

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

Executive ViewAI

Why It Matters

Microsoft Visual Studio Code, a widely deployed development environment, contains a critical remote code execution vulnerability (CVE-2026-102238) affecting versions 1.0.0 through 1.141.0. An attacker can exploit this by convincing a developer to open a malicious workspace, folder, or repository, leading to full compromise of the developer's workstation and potential lateral movement into corporate networks. With no public exploit identified, the immediate risk is manageable, but the severity demands urgent patching to protect intellectual property, credentials, and production access.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 50% exploitable
Prevalence
High
VS Code is among the most widely deployed developer editors worldwide
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Total

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +48
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-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-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

CVE-2026-69320 HIGH
8.8 Aug 11

OS command injection in Visual Studio Code exposes victims to remote code execution when they interact with attacker-con

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