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.
Published: 2026-07-14
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Thu, 16 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 14 Jul 2026 17:15:00 +0000

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'}


Subscriptions

Microsoft Visual Studio Code
cve-icon MITRE

Status: PUBLISHED

Assigner: microsoft

Published:

Updated: 2026-08-03T22:53:03.830Z

Reserved: 2026-05-12T16:07:22.618Z

Link: CVE-2026-45496

cve-icon Vulnrichment

Updated: 2026-07-16T15:15:31.263Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T09:45:04Z

Weaknesses
  • CWE-22

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