Skip to main content

Visual Studio Code EUVDEUVD-2026-73333

| CVE-2026-81377 MEDIUM
Path Traversal (CWE-22)
2026-09-08 secure@microsoft.com GHSA-h46c-53c5-55xv
6.5
CVSS 3.1 · Vendor: microsoft
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious workspace/project file with path-traversal payload
  2. Delivery
    Deliver file to victim via phishing or code platform
  3. Exploit
    Victim opens file in VS Code
  4. Execution
    Path traversal bypasses restricted directory
  5. Persist
    Arbitrary file written to victim filesystem
  6. Impact
    Tamper 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.

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

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

Alert me

AnalysisAIv1 – 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

Visual Studio Code 1.0.0 <1.136.2

Affected Packages

euvd visual_studio_code fix: 1.136.2

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

Vendor (microsoft) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
ENISA EUVD HIGH
vuln.today AI 6.5 MEDIUM

Network-delivered via malicious content, user must open it (UI:R), no auth required, write-only integrity impact with no confidentiality or availability effect.

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

Lifecycle Timeline

2
Patch available
Sep 08, 2026 - 18:35 EUVD
CVE Published
Sep 08, 2026 - 18:20 cve.org
MEDIUM 6.5

DescriptionCVE.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

EPSS Score
0.8%
Top 46% exploitable
Prevalence
High
VS Code is dominant code editor across millions of developer environments
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.8%
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

38
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +32
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-121663 HIGH
8.8 Nov 10

Security feature bypass in Visual Studio Code before 1.145.3 allows an unauthenticated remote attacker to evade a securi

CVE-2026-119975 HIGH
8.8 Nov 10

Cross-site scripting in Visual Studio Code before 1.145.3 can let unauthenticated, network-reachable attackers run attac

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

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