CVE-2026-45496

Visual Studio Code Security Feature Bypass Vulnerability

Published Jul 14, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is a path traversal flaw that allows an attacker to bypass a security feature within Visual Studio Code. By crafting a specially designed file path, an unauthorized local user could potentially access or manipulate files outside the intended restricted directory, undermining the integrity and confidentiality of the local development environment. The weakness is classified as CWE‑22, which indicates improper handling of file path resolution. The immediate impact is a local security flaw that could facilitate further exploitation if the attacker has sufficient local privileges or can trick a trusted process into using a malicious path.

Affected Systems

Microsoft Visual Studio Code is the affected product. No specific versions are listed, so all currently installed instances may be vulnerable until the issue is patched.

Risk and Exploitability

The CVSS score is 5.5, which places the vulnerability in the medium severity range. The EPSS score is reported as less than 1%, suggesting a very low probability of widespread exploitation at this time. It is not listed in the CISA KEV catalog. The attack vector is inferred to be local: the attacker must have some local presence or be able to supply a crafted path to the Visual Studio Code process. Once the path traversal succeeds, the attacker can manipulate file system paths in ways that bypass local security controls.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Visual Studio Code to the latest public release that contains the fix.
  • If an immediate update is not feasible, limit the directories that Visual Studio Code can access by adjusting operating system permissions to prevent the use of paths outside the intended workspace.
  • Regularly monitor system logs and configuration files for unexpected changes to directories used by Visual Studio Code.

Generated by OpenCVE AI on July 31, 2026 at 09:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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 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.
Title Visual Studio Code Security Feature Bypass Vulnerability
First Time appeared Microsoft
Microsoft visual Studio Code
Weaknesses CWE-22
CPEs cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:*:*:*
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')

Sources

Status
PUBLISHED
Assigner
microsoft
Published
Updated
Nov 10, 2026, 10:35 PM
Reserved
May 12, 2026, 4:07 PM
Status
Analyzed
Published
Jul 14, 2026, 5:16 PM
Modified
Oct 24, 2026, 9:10 PM