Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local low-privilege OS account
-
DeliverySupply crafted path input to VS Code
-
ExploitTrigger path traversal via unsanitized path resolution
-
ExecutionEscape restricted workspace directory
-
ImpactRead sensitive files outside intended boundary
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 that the attacker already has a local low-privilege OS account on the machine running the vulnerable VS Code instance (PR:L, AV:L). No network access is required - this is purely a local attack. The attacker must be able to interact with VS Code directly or supply crafted input (e.g., a workspace configuration, file path, or extension input) that triggers path resolution within the application. No user interaction from a victim is required (UI:N), but the attacker must themselves initiate the path traversal action. Exploitation is limited to reading files accessible to the OS user account under which VS Code runs - it cannot elevate beyond that process's file-system permissions. The vulnerability does not affect remote or unauthenticated attack scenarios, and SSVC confirms it is not automatable, ruling out wormable or mass-exploitation use cases. |
| Impact | Multiple intelligence signals converge on a moderate-to-low real-world risk profile despite the CVSS C:H rating. The CVSS vector (AV:L/AC:L/PR:L) confirms that exploitation is strictly local and requires at least a low-privilege OS account on the target machine, eliminating remote or unauthenticated attack scenarios entirely. EPSS at 0.45% (37th percentile) is well below exploitation thresholds typically prioritized in triage workflows, and SSVC corroborates this with exploitation status of 'none' and automatable status of 'no' - meaning mass exploitation pipelines cannot leverage this flaw. Technical impact is rated partial by SSVC, consistent with the read-only confidentiality impact and no scope change in CVSS (S:U). There is no CISA KEV listing and no reported POC. The primary real-world risk scenario is an insider or a threat actor who has already achieved local code execution attempting to read files outside the VS Code workspace sandbox - a meaningful but bounded post-exploitation capability. The absence of integrity and availability impact further constrains blast radius. Overall, this is a genuine medium-severity finding warranting patching on a regular cycle but not emergency response. |
| Exploit ScenarioDerived | A low-privilege local user on a shared development workstation opens a maliciously crafted workspace or project file in VS Code containing path references using traversal sequences. VS Code fails to restrict the path to the workspace directory, allowing the attacker to read sensitive files - such as SSH private keys, environment files, or source code outside the workspace - accessible to the VS Code process. No public POC has been identified, but the low attack complexity (AC:L) suggests the technique would be straightforward to implement for an attacker already on the system. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
Path traversal in Microsoft Visual Studio Code (all versions from 1.0.0 up to 1.128.1) enables a locally-authenticated low-privilege attacker to bypass a file-system security boundary and read files outside a restricted directory, resulting in high confidentiality impact. The vulnerability is rated CVSS 5.5 Medium and is limited to local attack vectors, requiring PR:L authenticated access. No public exploit code or active exploitation has been identified at time of analysis; EPSS stands at 0.45% and SSVC designates exploitation status as none, making this a lower-priority remediation item despite the High confidentiality impact rating.
RemediationAI
The primary remediation is upgrading Visual Studio Code to version 1.128.1 or later, which contains the vendor-released patch as confirmed by the Microsoft Security Response Center advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-45496. Users can update via the VS Code built-in updater (Help > Check for Updates) or by downloading the latest release directly from the official Microsoft distribution channel. For environments where immediate upgrade is not feasible, compensating controls include restricting local system access to trusted users only (reducing the pool of potential PR:L attackers), enabling OS-level file-system access controls (ACLs/permissions) to limit what files the VS Code process can reach even if traversal occurs, and reviewing VS Code workspace trust settings to minimize the attack surface. Note that these compensating controls reduce exposure but do not eliminate the underlying path traversal flaw. Additional detail is available via NVD at https://nvd.nist.gov/vuln/detail/CVE-2026-45496.
Affected VersionsENISA
Affected Packages
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
Visual Studio Code is an Electron/Node.js-based code editor that enforces security boundaries such as workspace trust and restricted file-system scopes to prevent unauthorized access to files outside the intended working context. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) describes the root cause: the application fails to adequately canonicalize or sanitize user-controlled path inputs, allowing traversal sequences to escape the restricted directory boundary. The affected product is fully identified via CPE cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:*:*:*, encompassing all platform variants (Windows, macOS, Linux) running versions from 1.0.0 through 1.128.0. The vulnerability produces no integrity or availability impact - it is a read-primitive only - consistent with a directory escape that exposes file content without enabling writes or process disruption.
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:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Local-only attack requiring an existing low-privilege account; read-only traversal yields high confidentiality but zero integrity or availability impact.
Primary rating from Vendor (microsoft).
CVSS VectorNVD
DescriptionNVD
Improper limitation of a pathname to a restricted directory ('path traversal') in Visual Studio Code allows an unauthorized attacker to bypass a security feature locally.
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-43993
GHSA-m7vq-9w86-qx38
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB