CVE-2026-70336

Visual Studio Code Remote Code Execution Vulnerability

Published Aug 11, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
Improper control of generation of code ('code injection') in Visual Studio Code allows an unauthorized attacker to execute code over a network.

Analysis

AI-generated

Technical impact

Improper control of code generation, also known as code injection, allows an unauthorized attacker to execute arbitrary code over a network. This flaw is classified as CWE-94 and results in remote code execution, threatening confidentiality, integrity, and availability of the affected system.

Affected Systems

Microsoft Visual Studio Code. No specific version information is provided; the vulnerability applies to all builds of Visual Studio Code that have not applied the latest update. The exact scope of affected releases is not detailed in the available data.

Risk and Exploitability

With a CVSS score of 8.8 the vulnerability is considered high severity. The EPSS score is less than 1%, indicating a low but non-zero probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, the likely attack vector is a network-based approach where the attacker gains access to the VS Code process. The exact prerequisites for exploitation are not specified, so it is assumed that any user with network reach to the victim’s VS Code instance could trigger the flaw.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install the latest VS Code update that contains the fix for this vulnerability.
  • Limit exposure of the VS Code process by restricting inbound traffic to trusted networks only.
  • Monitor logs and network traffic for unauthorized code execution attempts.

Generated by OpenCVE AI on August 12, 2026 at 19:31 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': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Improper control of generation of code ('code injection') in Visual Studio Code allows an unauthorized attacker to execute code over a network.
Title Visual Studio Code Remote Code Execution Vulnerability
First Time appeared Microsoft
Microsoft visual Studio Code
Weaknesses CWE-94
CPEs cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:*:*:*
Vendors & Products Microsoft
Microsoft visual Studio Code
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
microsoft
Published
Updated
Nov 19, 2026, 10:17 PM
Reserved
Aug 4, 2026, 12:04 AM
Status
Analyzed
Published
Aug 11, 2026, 5:19 PM
Modified
Oct 24, 2026, 4:10 PM