Skip to main content

Live Preview Extension EUVDEUVD-2026-29695

| CVE-2026-41612 MEDIUM
Relative Path Traversal (CWE-23)
2026-05-12 microsoft
5.5
CVSS 3.1 · Vendor: microsoft
Temporal: 4.8
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted HTML file or workspace to victim
  2. Delivery
    Victim opens file in VS Code with Live Preview installed
  3. Exploit
    Victim activates Live Preview feature
  4. Execution
    Extension's local server resolves traversal path without sanitization
  5. Impact
    Attacker reads sensitive files from victim's filesystem

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

Exploitation requires that the Visual Studio Code Live Preview extension version 0.4.0 through 0.4.18 is installed on the target workstation - this extension is not bundled with VS Code and must be explicitly installed by the user. The victim must actively trigger a preview (UI:R) on an HTML file or workspace containing attacker-controlled path references; simply opening VS Code is insufficient. The attack is local (AV:L), meaning the attacker must either have a presence on the same machine or must supply malicious content that the developer opens and previews. File disclosure is bounded by the OS permissions of the VS Code process - typically the developer's own user account. Limiting factors: the extension is not universally installed, exploitation is not automatable (SSVC: Automatable: no), requires victim interaction, and is platform-agnostic but inherently a developer workstation scenario with no network exposure of the preview server to remote hosts.

Impact

Real-world risk is low-to-moderate despite the CVSS Medium score of 5.5. The attack vector is strictly local (AV:L) and requires user interaction (UI:R), confining viable attackers to those with physical or remote desktop access to a developer workstation, or those capable of socially engineering a developer into opening a crafted file. EPSS corroborates this - at 0.04% (12th percentile), opportunistic automated exploitation is essentially ruled out. SSVC confirms Exploitation: none and Technical Impact: partial, consistent with a narrow, non-automated attack path. The vulnerability is not in CISA KEV and no public proof-of-concept has been identified. The most significant signal is C:H in the CVSS vector: a successful exploit could yield high-value local file disclosure (SSH keys, .env files, tokens). However, this only materializes against an actively developing user who has the affected extension installed and previews attacker-controlled content. The realistic population at risk is limited to developers using the Live Preview feature on affected versions.

Exploit ScenarioDerived

An attacker with local machine access, or one who persuades a developer to open a crafted HTML file in VS Code, embeds resource references containing relative path traversal sequences (e.g., an image source of '../../../../home/user/.ssh/id_rsa') in the file. When the victim activates the Live Preview feature, the extension's local HTTP server resolves the malformed path without sufficient sanitization, serving the referenced file from outside the workspace and returning its contents to the preview pane or to any process monitoring the local server's responses.

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

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

Alert me

AnalysisAIv1 – Jul 23, 2026

Path traversal in the Visual Studio Code Live Preview extension (versions 0.4.0 through 0.4.18) enables a local attacker to read arbitrary files outside the intended workspace directory by exploiting insufficient path validation in the extension's embedded HTTP server. The flaw (CWE-23) can expose sensitive local files such as credentials or private keys to any party who can supply a crafted file to a developer and have them trigger the preview feature. No public exploit code exists and the vulnerability is absent from CISA KEV; Microsoft has released a fix in version 0.4.19.

RemediationAI

The primary and recommended fix is to update the Visual Studio Code Live Preview extension to version 0.4.19 or later, which Microsoft has confirmed resolves this path traversal, per the MSRC advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-41612. Updates are applied via the VS Code Extensions panel (View > Extensions > search 'Live Preview' > Update) or by running 'code --install-extension ms-vscode.live-server' from the terminal. If immediate patching is not feasible, disabling the Live Preview extension entirely via the Extensions panel eliminates the attack surface at the cost of losing in-editor HTML preview functionality. Instructing developers not to open untrusted workspaces or HTML files while the extension is active also reduces exposure, though this is a behavioral control rather than a technical one.

Affected VersionsENISA

Visual Studio Code - Live Preview extension 0.4.0 <0.4.19

Affected Packages

microsoft visual_studio_code_live_preview_extension_0_4_19 fix: Visual Studio Code - Live Preview extension 0.4.19
euvd visual_studio_code_live_preview_extension fix: 0.4.19

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

The affected product is the Microsoft Visual Studio Code Live Preview extension (CPE: cpe:2.3:a:microsoft:visual_studio_code_-_live_preview_extension), versions 0.4.0 through 0.4.18 per EUVD-2026-29695. The extension runs an embedded local HTTP server inside VS Code to render HTML files as live, in-editor browser previews during development. CWE-23 (Relative Path Traversal) identifies the root cause: the server does not adequately canonicalize or sanitize file paths before resolving them, allowing traversal sequences such as '../../' in resource references (e.g., img src, script src, fetch URLs) to escape the intended workspace web root and reach arbitrary filesystem locations accessible to the current user. This class of flaw is endemic to developer-facing embedded web servers that prioritize convenience, where strict path confinement is often an afterthought.

Know when Visual Studio Code Live Preview Extension 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 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
ENISA EUVD HIGH
CIRCL (temporal) 4.8 MEDIUM
vuln.today AI 5.5 MEDIUM

Local attack vector with required user interaction reflects developer workstation context; no integrity or availability impact from read-only path traversal.

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

Primary rating from Vendor (microsoft).

CVSS VectorVendor: microsoft

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

DescriptionCVE.org

Relative path traversal in Visual Studio Code allows an unauthorized attacker to disclose information locally.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Prevalence
Medium
popular VS Code extension among frontend and web developers
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.0%
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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
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.

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