Skip to main content

Visual Studio Code EUVDEUVD-2026-43993

| CVE-2026-45496 MEDIUM
Path Traversal (CWE-22)
2026-07-14 microsoft GHSA-m7vq-9w86-qx38
5.5
CVSS 3.1 · NVD
Temporal: 4.8
View

Attack ChainAIDerived

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

  1. Access
    Obtain local low-privilege OS account
  2. Delivery
    Supply crafted path input to VS Code
  3. Exploit
    Trigger path traversal via unsanitized path resolution
  4. Execution
    Escape restricted workspace directory
  5. Impact
    Read 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.

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

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

Alert me

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

Visual Studio Code 1.0.0 <1.128.1

Affected Packages

microsoft visual_studio_code_1_128_1 fix: Visual Studio Code 1.128.1
euvd visual_studio_code fix: 1.128.1

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

Vendor (microsoft) PRIMARY MEDIUM
NVD 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
ENISA EUVD HIGH
CIRCL (temporal) 4.8 MEDIUM
vuln.today AI 5.5 MEDIUM

Local-only attack requiring an existing low-privilege account; read-only traversal yields high confidentiality but zero integrity or availability impact.

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

Primary rating from Vendor (microsoft).

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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

EPSS Score
0.5%
Top 63% exploitable
Prevalence
High
most widely deployed cross-platform code editor globally
Threat Intel
1
1 sources
Vendor Action
See Below
Required. The vulnerability documented by this CVE requires customer action to resolve.
Vendor Status
Publicly Disclosed:No
Exploited:No
Latest Software Release:Exploitation Less Likely
Data Quality
7 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.5%
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
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
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