Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious workspace/project file with path-traversal payload
-
DeliveryDeliver file to victim via phishing or code platform
-
ExploitVictim opens file in VS Code
-
ExecutionPath traversal bypasses restricted directory
-
PersistArbitrary file written to victim filesystem
-
ImpactTamper with code artifacts or configuration
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 the victim to open or interact with attacker-controlled content in VS Code - such as opening a malicious workspace file, cloning a crafted repository, or importing a specially constructed extension or project configuration. The attacker does not require any credentials on the target system (PR:N from CVSS), but cannot exploit this passively; the victim must take an action within the VS Code application (UI:R). Limiting factors: user interaction is mandatory, the scope is unchanged (S:U, no lateral pivot to other system components), there is no confidentiality impact (files cannot be read back to the attacker via this vector), and the attack is not automatable per SSVC assessment. Exploitation is platform-independent given VS Code's cross-platform nature, but practical impact varies by OS permissions governing where VS Code can write. |
| Impact | The provided CVSS vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N) scores 6.5, reflecting a medium-severity issue with meaningful real-world constraints. The UI:R metric is the primary risk limiter: an attacker cannot fully automate exploitation without a victim actively opening or processing malicious content - consistent with the SSVC 'Automatable: no' determination. The I:H impact signals that successful exploitation achieves arbitrary file writes on the victim's machine, which is serious (e.g., planting malicious scripts, overwriting build artifacts, or modifying configuration files). However, C:N and A:N indicate no data exfiltration or denial of service. SSVC 'Technical Impact: partial' aligns with the scoped write-only impact. No KEV listing, no published POC, and SSVC 'Exploitation: none' all converge on this being a patch-and-move-on issue rather than an emergency response priority. The combination of network delivery, no authentication requirement, and high integrity impact makes this worth treating urgently in developer environments where VS Code workspaces are routinely opened from untrusted sources. |
| Exploit ScenarioDerived | An attacker crafts a malicious VS Code workspace file or repository containing path-traversal sequences in file references or extension data, then distributes it via a code-sharing platform, phishing email, or pull request to a target developer. When the victim opens the workspace in VS Code, the traversal sequence causes VS Code to write a file outside the intended project directory - for example, planting a malicious script in a startup location or overwriting a CI/CD configuration file. No POC is publicly available at the time of this analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Path traversal in Visual Studio Code (all versions prior to 1.136.2) allows a remote unauthenticated attacker to write files outside the intended restricted directory, achieving high-integrity tampering on the victim's system over a network. The attack requires user interaction - a victim must open or process attacker-controlled content within VS Code - which limits automatability. No active exploitation has been identified; SSVC assessment confirms exploitation status as none with partial technical impact. Microsoft has released a fix in version 1.136.2.
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-81377. VS Code's built-in auto-update mechanism will apply this fix automatically on most installations; users should verify their installed version via Help > About or the --version CLI flag. As a compensating control where immediate upgrade is not feasible, avoid opening VS Code workspaces, project files, or repositories sourced from untrusted or unverified parties, as user interaction with attacker-controlled content is a prerequisite for exploitation. Organizations managing VS Code deployments via enterprise policy (e.g., via Intune or SCCM) should push the update through their existing software distribution channels.
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
Visual Studio Code is Microsoft's cross-platform source-code editor built on Electron and Node.js. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) describes a class of vulnerabilities where user-supplied path components - such as those in workspace files, extension manifests, or language server data - are not properly sanitized, allowing sequences like '../' to escape the intended restricted directory. In VS Code's context, the affected code path likely handles a file or workspace resource delivered over a network (e.g., a cloned repository, a shared workspace configuration, or a remote extension pack), where path normalization fails to prevent writes outside the expected sandbox. The affected version range is VS Code 1.0.0 through 1.136.1 (CPE implied by EUVD range), covering the vast majority of the installed base prior to the patch.
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
Network-delivered via malicious content, user must open it (UI:R), no auth required, write-only integrity impact with no confidentiality or availability effect.
Primary rating from Vendor (microsoft).
CVSS VectorVendor: microsoft
Lifecycle Timeline
2DescriptionCVE.org
Improper limitation of a pathname to a restricted directory ('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-73333
GHSA-h46c-53c5-55xv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB