Description
Improper control of generation of code ('code injection') in Visual Studio Code allows an unauthorized attacker to execute code over a network.
Published: 2026-08-11
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

Generated by OpenCVE AI on August 12, 2026 at 19:31 UTC.

Remediation

No vendor fix or workaround currently provided.

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

History

Wed, 12 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 11 Aug 2026 17:15:00 +0000

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


Subscriptions

Microsoft Visual Studio Code
cve-icon MITRE

Status: PUBLISHED

Assigner: microsoft

Published:

Updated: 2026-08-31T20:06:15.711Z

Reserved: 2026-08-04T00:04:56.036Z

Link: CVE-2026-70336

cve-icon Vulnrichment

Updated: 2026-08-12T15:43:57.751Z

cve-icon NVD

Status : Analyzed

Published: 2026-08-11T17:19:11.277

Modified: 2026-08-28T20:19:42.103

Link: CVE-2026-70336

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T19:45:08Z

Weaknesses
  • CWE-94

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