Skip to main content

Visual Studio Code CVE-2026-102229

| EUVDEUVD-2026-99035 MEDIUM
Path Traversal (CWE-22)
2026-10-13 secure@microsoft.com GHSA-q627-wj8c-4952
6.8
CVSS 3.1 · Vendor: microsoft
View

Attack ChainAIDerived

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

  1. Access
    Lure victim to open malicious workspace
  2. Exploit
    Deliver crafted path-traversal pathname
  3. Execution
    Escape restricted directory on resolution
  4. Impact
    Disclose sensitive files over network

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 running a vulnerable Visual Studio Code version (1.0.0 up to but not including 1.141.1) to open attacker-controlled content - such as a malicious workspace, repository, or project folder - that contains the path-traversal payload (UI:R). The CVSS vector's PR:L indicates some authorization/privilege is required, so this is not a fully unauthenticated drive-by. Limiting factors: the mandatory user-interaction step (the attacker cannot trigger it autonomously), the required privilege level, and the fact that only pre-1.141.1 builds are affected. Impact is confined to confidentiality (file/information disclosure); there is no integrity or availability impact.

Impact

This is a moderate-severity information-disclosure flaw (CVSS 6.8) rather than a top-priority, drop-everything issue. The CVSS vector (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N) shows a network-reachable path traversal that nonetheless requires BOTH some level of authorization (PR:L) AND victim user interaction (UI:R), which materially limits mass or automated exploitation. Impact is confidentiality-only (C:H, I:N, A:N) with a changed scope (S:C), meaning disclosed data can reach beyond the originally intended security boundary. No EPSS score, no CISA KEV listing, and no public POC were provided, so there is no public exploit identified at time of analysis and no evidence of active exploitation - the signals are internally consistent (moderate base score, interaction-gated, no exploitation telemetry) and point to a patch-on-normal-cycle priority. Note the tension between AV:N and the real-world trigger: 'network' here reflects that exploitation hinges on a victim opening attacker-controlled remote content (e.g., a malicious workspace/repository), not a server listening on a port - defenders should weigh this as a client-side lure risk, not a remotely sprayable service bug.

Exploit ScenarioDerived

An attacker crafts a malicious workspace, repository, or project folder containing path-traversal sequences and lures a developer into opening it in a vulnerable Visual Studio Code build (below 1.141.1). When the victim opens the content, VS Code resolves the manipulated pathname outside the intended restricted directory and discloses the contents of sensitive local files to the attacker over the network. No public exploit code was identified at time of analysis, and exploitation depends on the victim's interaction.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.9% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 13, 2026

Information disclosure in Visual Studio Code stems from a path traversal flaw (CWE-22) that allows an attacker holding a low-privileged position and delivering crafted content to read files outside the intended workspace boundary once a victim opens that content. Versions from 1.0.0 up to but not including 1.141.1 are affected, and exploitation is not autonomous: the CVSS vector requires user interaction (UI:R) for the victim to open the malicious workspace, repository, or project folder, along with the privilege level indicated by PR:L, while impact is confined to confidentiality (C:H) with no integrity or availability effect. There is no confirmed active exploitation (CISA KEV does not list this CVE) and no public exploit code identified at time of analysis; at CVSS 6.8 this is a moderate-severity information-disclosure issue rather than a drop-everything emergency, and the vendor has published an update guide with patch availability.

RemediationAI

Apply the vendor update: Microsoft reports patch availability through the MSRC advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-102229, and since the affected range terminates below 1.141.1, upgrading Visual Studio Code to 1.141.1 or later is the remediation target - confirm the exact fixed build in the MSRC update guide rather than relying on the range boundary alone. Where immediate upgrading is not possible, the most effective compensating control is to avoid opening untrusted workspaces, repositories, or project folders, and to keep Workspace Trust in restricted mode so that untrusted content cannot trigger extension or task execution, with the trade-off that restricted mode disables extensions, debugging, and task automation for those folders and may interrupt legitimate workflows. Running VS Code under a least-privileged OS account, inside a container or sandbox, or on a machine that holds no sensitive files limits the value of any disclosed information, at the cost of convenience and access to local tooling. Note that these mitigations reduce exposure only; they do not remove the underlying path-traversal defect, so patching remains the durable fix.

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

The root cause is a failure to properly constrain a pathname to a restricted directory, the classic CWE-22 path traversal class: user- or content-supplied path input (here, paths resolved while handling an opened workspace, repository, or project folder) is not canonicalized and validated against the intended root, so traversal sequences or crafted references can escape the workspace sandbox. Visual Studio Code is an Electron-based desktop IDE that resolves and reads many files on behalf of the user and its extensions, which is why the advisory assigns a changed scope (S:C) - the vulnerable component's handling of paths influences resources beyond its own security boundary - and why the confidentiality impact is rated High while integrity and availability remain None. The CVSS:3.1/AV:N/AC:L/PR:L/UI:R vector describes a network-reachable, low-complexity attack that still requires the attacker to obtain some authorization (PR:L) and, critically, to persuade the victim to open the malicious content (UI:R). The affected version range per the ENISA EUVD entry is 1.0.0 through builds below 1.141.1; no CPE strings were supplied in the source data, so product identification rests on the vendor (Microsoft) and the MSRC advisory reference.

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

Network-delivered malicious content needs victim interaction (UI:R) and some authorization (PR:L); traversal crosses the directory boundary (S:C) and leaks files (C:H) with no integrity or availability effect.

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

Primary rating from Vendor (microsoft).

CVSS VectorVendor: microsoft

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

Lifecycle Timeline

2
Patch available
Oct 13, 2026 - 20:20 EUVD
CVE Published
Oct 13, 2026 - 19:17 cve.org
MEDIUM 6.8

DescriptionCVE.org

Improper limitation of a pathname to a restricted directory ('path traversal') in Visual Studio Code allows an authorized attacker to disclose information over a network.

Threat Intelligence Overview

EPSS Score
0.9%
Top 40% exploitable
Prevalence
High
One of the most widely deployed developer IDEs across enterprises 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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