PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet
Vulnerability DatabaseCVE-2026-102238

CVE-2026-102238: 
Visual Studio Code vulnerability analysis and mitigation

Overview

CVE-2026-102238 is a path traversal vulnerability (CWE-22) in Microsoft Visual Studio Code that allows an unauthenticated remote attacker to execute arbitrary code over a network when a user interacts with a malicious file or input. It affects Visual Studio Code versions 1.0.0 through 1.141.0; version 1.141.1 and later are patched. The vulnerability was disclosed and patched on October 13, 2026, as part of Microsoft's October 2026 Patch Tuesday. It carries a CVSS v3.1 base score of 9.6 (Critical) (Microsoft MSRC, BleepingComputer).

Technical details

The root cause is improper limitation of a pathname to a restricted directory (CWE-22 / Path Traversal), where Visual Studio Code fails to adequately validate or sanitize file path inputs, allowing an attacker to traverse outside the intended directory boundary. Exploitation occurs over the network (attack vector: network) with low attack complexity and no privileges required, but does require user interaction — specifically, a user must open or interact with a malicious file or content within VS Code. The changed scope indicator suggests the impact can extend beyond the VS Code process itself to the underlying host system. No public proof-of-concept exploit code has been identified at this time (Microsoft MSRC, ENISA EUVD).

Impact

Successful exploitation results in full remote code execution on the victim's system, with high impact to confidentiality, integrity, and availability. An unauthenticated attacker can read sensitive files, modify or delete data, and potentially disrupt system availability — all without requiring any prior authentication. The changed scope in the CVSS vector indicates that exploitation may affect resources beyond the VS Code application itself, increasing the risk of lateral movement or privilege escalation on the host (Microsoft MSRC).

Exploitability

As of the disclosure date (October 13, 2026), there is no evidence of active in-the-wild exploitation and no public proof-of-concept exploit code has been published. The NVD SSVC assessment confirms exploitation status as "none" and the vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is 0.0, reflecting low current exploitation probability. Exploitation is not fully automatable due to the required user interaction (Microsoft MSRC).

Exploitation steps

  1. Reconnaissance: Identify targets running vulnerable versions of Visual Studio Code (1.0.0–1.141.0), particularly developers or organizations using VS Code as their primary IDE.
  2. Craft malicious payload: Prepare a malicious file (e.g., a specially crafted workspace configuration, extension manifest, or project file) containing path traversal sequences (e.g., ../, URL-encoded variants such as %2F, or alternate encodings) designed to escape the restricted directory boundary.
  3. Deliver the payload: Distribute the malicious file via phishing email, a compromised repository, a malicious VS Code extension, or a shared project/workspace link, enticing the target user to open it in VS Code.
  4. Trigger path traversal: When the victim opens the malicious file in VS Code, the application processes the crafted path without proper sanitization, traversing outside the intended directory.
  5. Achieve code execution: The traversal allows the attacker to write or reference executable content in a sensitive location, resulting in arbitrary code execution in the context of the VS Code process and potentially the underlying OS user account (Microsoft MSRC).

Indicators of compromise

  • File System: Unexpected files written outside the VS Code workspace directory, particularly in system directories or user profile paths; presence of files with path traversal sequences (../, %2F, %5C) in VS Code workspace or extension configuration files.
  • Process: Unusual child processes spawned by the VS Code process (e.g., cmd.exe, powershell.exe, bash, curl, wget) performing unexpected network connections or file operations.
  • Network: Outbound connections from the VS Code process or its child processes to unknown or suspicious external IP addresses or domains shortly after opening a file.
  • Logs: OS audit logs showing file access or creation events in sensitive directories initiated by the VS Code process (code.exe on Windows, code on Linux/macOS); application logs referencing unusual or encoded file paths.

Mitigation and workarounds

Microsoft has released Visual Studio Code version 1.141.1 as the patched release; all users running versions 1.0.0 through 1.141.0 should update immediately via the VS Code built-in update mechanism or by downloading the latest release from the official site. As a temporary workaround until patching is possible, users should avoid opening untrusted files, workspaces, or projects in VS Code, and exercise caution with files received from unknown sources. Organizations should enforce VS Code version management policies to ensure all developer workstations are running the patched version (Microsoft MSRC).

Community reactions

The vulnerability was covered by BleepingComputer as part of Microsoft's October 2026 Patch Tuesday, which addressed 1,411 flaws including 3 zero-days, indicating broad industry attention to this patch cycle (BleepingComputer). Security aggregators such as VulDB and Offseq Radar also indexed the vulnerability shortly after disclosure. No notable individual researcher commentary or significant social media debate specific to this CVE has been identified at this time.

Additional resources


Source: This report was generated using AI

Related Visual Studio Code vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-102238CRITICAL9.6
  • Visual Studio Code logoVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesOct 13, 2026
CVE-2026-70098HIGH8.8
  • Visual Studio Code logoVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesOct 13, 2026
CVE-2026-102235HIGH8.8
  • Visual Studio Code logoVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesOct 13, 2026
CVE-2026-69370HIGH8.8
  • Visual Studio Code logoVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesOct 13, 2026
CVE-2026-102234HIGH7.4
  • Visual Studio Code logoVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesOct 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management