CVE-2026-41612

Visual Studio Code Information Disclosure Vulnerability

Published May 12, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
Relative path traversal in Visual Studio Code allows an unauthorized attacker to disclose information locally.

Analysis

AI-generated

Technical impact

A relative path traversal flaw in Microsoft Visual Studio Code's Live Preview extension allows an unauthorized local attacker to read files outside the intended project directory. The vulnerability permits disclosure of potentially sensitive data stored on the victim's machine. The weakness is a classic pathname traversal issue and is classified under CWE-22 and CWE-23.

Affected Systems

The vulnerable component is the Live Preview extension supplied by Microsoft for Visual Studio Code. No specific version range is enumerated, so all installations of the extension that have not been patched are potentially affected.

Risk and Exploitability

The CVSS score of 5.5 indicates a medium severity impact. EPSS data is not available, and the vulnerability is not currently listed in the CISA KEV catalog. Because the flaw requires local presence, the attack surface is limited to users who have access to the target machine and can install or otherwise execute the extension. Exploitation would involve manipulating file paths passed to the preview functionality to access arbitrary files within the system's file space.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Live Preview extension to the latest version once the vendor releases a fix for the path-traversal flaw.
  • If an update is unavailable, uninstall or disable the Live Preview extension to eliminate the attack vector until a patch is released.
  • Configure the Visual Studio Code workspace settings to restrict extension permissions, ensuring that extensions cannot read or write files outside the designated project directory.

Generated by OpenCVE AI on May 12, 2026 at 20:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Microsoft live Preview
CPEs cpe:2.3:a:microsoft:live_preview:*:*:*:*:*:visual_studio_code:*:*
Vendors & Products Microsoft live Preview
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Relative path traversal in Visual Studio Code allows an unauthorized attacker to disclose information locally.
Title Visual Studio Code Information Disclosure Vulnerability
First Time appeared Microsoft
Microsoft visual Studio Code
Weaknesses CWE-22
CWE-23
CPEs cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:livepreview:*:*
Vendors & Products Microsoft
Microsoft visual Studio Code
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-23

    Relative Path Traversal

Sources

Status
PUBLISHED
Assigner
microsoft
Published
Updated
Aug 10, 2026, 3:13 PM
Reserved
Apr 21, 2026, 10:14 PM
Status
Analyzed
Published
May 12, 2026, 6:17 PM
Modified
Oct 26, 2026, 6:10 PM