Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious workspace or project file with traversal paths
-
DeliveryHost or deliver file to target developer over network
-
ExploitVictim opens content in vulnerable VS Code instance
-
ExecutionPath traversal sequences bypass directory boundary checks
-
PersistAttacker-controlled data written to files outside intended project root
-
ImpactTarget system files or scripts tampered with
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Relative path traversal prevention
|
| Exploitation Conditions | Based on the CVSS vector PR:N, no authentication or account privileges are required from the attacker's perspective. The critical limiting condition is UI:R - a victim user must actively open attacker-controlled content (such as a crafted workspace, project folder, or configuration file) within Visual Studio Code for the traversal to execute; there is no autonomous remote trigger. The attack is network-delivered (AV:N), meaning the malicious content can be hosted remotely and delivered without local access. Scope is unchanged (S:U), confining impact to the user's file system context. Exploitation is further limited to VS Code versions below 1.123.1 - fully patched installations are not affected. No specific non-default configuration or feature flag is identified in the available data as a prerequisite beyond simply opening untrusted content. |
| Impact | The CVSS base score of 6.5 (Medium) reflects a meaningful but constrained risk profile: network-reachable (AV:N), low complexity (AC:L), no privileges needed (PR:N), but user interaction required (UI:R) and scope unchanged (S:U). The I:H rating means successful exploitation delivers high integrity impact - file overwrite or modification - while confidentiality and availability are unaffected. The UI:R component is the most significant real-world limiter; exploitation depends on a victim actively opening attacker-supplied content in VS Code, which reduces the attack surface compared to fully automated exploitation. No EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be quantified here. Neither a public POC nor a CISA KEV listing is present, suggesting this is not currently under mass exploitation. The combination of a readily available vendor patch and the user-interaction requirement places this in the 'patch promptly but not emergency-response' tier for most enterprise environments, with elevated urgency for developer workstations that routinely open untrusted repositories or workspace files. |
| Exploit ScenarioDerived | An attacker crafts a malicious Visual Studio Code workspace file or specially structured project directory containing path traversal sequences in file references or configuration metadata, then delivers it to a developer target via phishing, a public repository, or a shared collaboration link. When the victim opens the workspace in a vulnerable VS Code version, the traversal payload causes the editor to write or overwrite files at an attacker-chosen path outside the project root - for example, modifying shell configuration files, CI/CD scripts, or environment files in parent directories. No public POC has been identified, but the low attack complexity rating (AC:L) suggests the technique does not require chained conditions or unusual target state once the victim opens the content. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 09, 2026
Relative path traversal in Visual Studio Code versions prior to 1.123.1 enables unauthenticated remote attackers to tamper with files outside the intended directory boundary, producing a high integrity impact with no confidentiality or availability loss. The CVSS vector (AV:N/AC:L/PR:N/UI:R) indicates the attack requires no privileges and is low-complexity over a network, but depends on a victim interacting with attacker-controlled content. No public exploit code has been identified and this CVE is not listed in the CISA KEV catalog at time of analysis.
RemediationAI
The primary remediation is to upgrade Visual Studio Code to version 1.123.1 or later, which addresses the relative path traversal per the vendor-released patch. The Microsoft Security Response Center advisory is available at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-47287. As a compensating control where immediate upgrade is not feasible, restrict opening of untrusted workspaces, workspace files (.code-workspace), or repository folders from unknown sources, as user interaction is required to trigger the vulnerability - preventing exposure to untrusted content directly limits exploitation opportunity. Note that this control relies on user discipline and does not eliminate the underlying flaw. No additional workarounds were specified in vendor guidance at time of analysis.
Affected VersionsENISA
Affected Packages
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-23 (Relative Path Traversal) describes a failure to sanitize relative path sequences such as '../' or './' within user-controlled input before using it to construct file system paths. In Visual Studio Code, a widely deployed Electron-based IDE by Microsoft, this class of flaw can manifest in workspace or extension processing code that accepts externally-supplied path components without normalization, allowing writes to escape the intended working directory. The affected version range per EUVD is Visual Studio Code 1.0.0 through below 1.123.1. The network attack vector with user interaction suggests the vulnerability is triggered when a user opens a crafted file, workspace configuration, or remote resource within the editor rather than through an autonomous server-side code path.
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
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Primary rating from Vendor (microsoft).
CVSS VectorVendor: microsoft
Lifecycle Timeline
1DescriptionCVE.org
Relative path traversal in Visual Studio Code allows an unauthorized attacker to perform tampering over a network.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
More in Visual Studio Code
View allVisual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent
Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 8.8), this vulnerability is remotely e
Security-feature bypass in Microsoft Visual Studio Code before 1.136.2 lets a remote, unauthenticated attacker defeat a
Remote code execution in Visual Studio Code (versions 1.0.0 up to but not including 1.141.1) is achievable through a pat
Privilege escalation in Microsoft Visual Studio Code allows remote unauthenticated attackers to elevate privileges over
Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent
Security feature bypass in Visual Studio Code before 1.145.3 allows an unauthenticated remote attacker to evade a securi
Cross-site scripting in Visual Studio Code before 1.145.3 can let unauthenticated, network-reachable attackers run attac
Security-feature bypass in Microsoft Visual Studio Code lets a remote attacker deliver functionality from an untrusted c
Remote code execution in Visual Studio Code (versions 1.0.0 through 1.132.0) is enabled by a missing authorization check
Command injection in Visual Studio Code 1.0.0 through 1.141.0 allows an unauthenticated remote attacker to execute arbit
Remote code execution in Microsoft Visual Studio Code allows a network-based attacker to inject and execute arbitrary co
EUVD-2026-35698
GHSA-cw93-p7fx-xgqx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB