Skip to main content

Visual Studio Code EUVDEUVD-2026-56589

| CVE-2026-70336 HIGH
Code Injection (CWE-94)
2026-08-11 secure@microsoft.com GHSA-29cx-mh6p-wj36
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious workspace or file
  2. Delivery
    Deliver via repository, email, or link
  3. Exploit
    Victim opens content in VS Code
  4. Execution
    Code injection payload evaluated by VS Code runtime
  5. Persist
    Arbitrary code executes as victim user
  6. Impact
    Full access to developer workstation and credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the victim is running a vulnerable version of Visual Studio Code and that they perform a user interaction - specifically opening or processing attacker-controlled content such as a workspace file, project folder, or crafted document. The CVSS PR:N metric confirms no authentication or account privileges are required on the attacker's side. The UI:R metric confirms that passive, zero-click exploitation is not possible; the victim must actively engage with the malicious content. Exploitation is not restricted to a specific operating system platform based on available data. The attack is limited by: (1) the requirement for victim interaction, making mass exploitation dependent on a social engineering or supply-chain delivery mechanism; (2) the scope being unchanged (S:U), meaning post-exploitation impact is bounded to the VS Code process and the user's session rather than a hypervisor or adjacent system. No specific non-default configuration or feature flag is identified as a prerequisite in the available data.

Impact

The CVSS score of 8.8 reflects a genuinely severe vulnerability: network-reachable, low attack complexity, no privileges required, and complete triad impact (C:H/I:H/A:H). The sole friction is UI:R - the victim must perform some interaction, such as opening a specially crafted file or workspace. In developer environments, where opening unfamiliar repositories or shared workspace configurations is routine, this friction is minimal in practice. No EPSS score was provided in the source data, and the absence of a KEV listing means active exploitation is not yet confirmed by CISA; however, the low complexity and wide attack surface of VS Code mean that exploitation tooling, once developed, would require little sophistication. Even a mid-sized municipal IT team in sopot running developer workstations on VS Code should treat this as an urgent patch priority given that developers regularly clone and open external repositories. The combination of a network attack vector, no required privileges, and high post-exploitation impact places this firmly in the 'patch immediately' tier despite the lack of confirmed in-the-wild exploitation.

Exploit ScenarioDerived

An attacker crafts a malicious VS Code workspace or file designed to inject code through the vulnerable code-generation path and hosts it on a public repository or sends it via email or chat. A developer opens the workspace in VS Code - a routine action during code review or project onboarding - triggering the injection and executing attacker-controlled code with the privileges of the VS Code process on the developer's workstation. No public proof-of-concept exploit was identified at the time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 11, 2026

Remote code execution in Microsoft Visual Studio Code allows a network-based attacker to inject and execute arbitrary code on a victim's machine with no prior authentication, provided the victim performs a user interaction - such as opening a malicious workspace, file, or URI. Classified under CWE-94 (Code Injection), the vulnerability carries a CVSS base score of 8.8, reflecting high impact across confidentiality, integrity, and availability. No public exploit code or CISA KEV listing was identified at the time of analysis, but the attack complexity is rated Low, making reliable exploitation straightforward once a victim is lured.

RemediationAI

The primary remediation is to apply the Microsoft-released patch referenced in the MSRC advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-70336. Users should update Visual Studio Code to the patched version specified in that advisory; an exact fix version number was not available in the data provided and must be confirmed from the MSRC page. As a compensating control pending patching, organizations should enable and enforce VS Code's Workspace Trust feature, which prompts users before executing workspace-level code, and configure it to default to Restricted mode for all unknown workspaces - this directly limits the code injection surface but does not eliminate it. Additionally, blocking VS Code's access to arbitrary external URIs and remote workspaces via network policy reduces the network-reachable attack surface. Developers should be advised not to open repositories or workspace files from untrusted or unverified sources until patched.

Affected VersionsENISA

Visual Studio Code 1.0.0 <1.132.1

Affected Packages

euvd visual_studio_code fix: 1.132.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-94 (Improper Control of Generation of Code - Code Injection) describes a class of vulnerabilities where user-controlled input is passed to a code generation or evaluation mechanism without adequate sanitization, allowing an attacker to inject executable logic. Visual Studio Code is Microsoft's Electron-based cross-platform IDE, which hosts a Node.js runtime, a built-in extension engine, and numerous embedded interpreters and language servers. Attack surface candidates for code injection in VS Code historically include workspace trust bypass, malicious .code-workspace files, settings injection, or extensions that evaluate untrusted input. The CVSS vector (AV:N/AC:L/PR:N/UI:R) indicates the injection path is reachable over the network with low complexity but requires the victim to take an action, consistent with opening a crafted file, repository, or remote workspace. The NVD CPE for affected versions was not provided in the available data; version ranges should be confirmed against the Microsoft MSRC advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-70336.

Know when Visual Studio Code gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (microsoft) PRIMARY HIGH
NVD 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
ENISA EUVD HIGH
vuln.today AI 8.8 HIGH

Network-reachable injection requiring victim to open malicious content (UI:R, PR:N); full triad impact limited to user session scope (S:U).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (microsoft).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Aug 11, 2026 - 18:19 EUVD
CVE Published
Aug 11, 2026 - 17:19 nvd
HIGH 8.8

DescriptionNVD

Improper control of generation of code ('code injection') in Visual Studio Code allows an unauthorized attacker to execute code over a network.

Executive ViewAI

Why It Matters

Microsoft Visual Studio Code (CVE-2026-70336, CVSS 8.8) contains a remote code execution vulnerability allowing unauthenticated attackers to execute arbitrary code through malicious workspaces, files, or URIs when developers open untrusted projects. This directly threatens the security of development environments, source code repositories, and build systems across the organization. Immediate action is required to prevent developer machine compromise and protect the integrity of the software supply chain.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: enforce organizational policies restricting workspace trust to internal and verified sources only; disable or restrict remote workspace and untrusted extension installation capabilities; implement workspace and extension configuration code signing verification; deploy network segmentation to limit outbound connections from development machines; configure EDR to alert on suspicious child processes spawned by Visual Studio Code; and conduct mandatory security awareness training for development teams focused on phishing and malicious project risks.

Threat Intelligence Overview

EPSS Score
0.6%
Top 52% exploitable
Prevalence
High
dominant IDE for developers worldwide across enterprise and open-source
Threat Intel
1
1 sources
Vendor Status
Publicly Disclosed:No
Exploited:No
Latest Software Release:Exploitation Less Likely
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: +5

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2022-41034 HIGH POC
7.8 Oct 11

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent

CVE-2022-30129 HIGH POC
8.8 May 10

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 8.8), this vulnerability is remotely e

CVE-2026-81376 CRITICAL
9.6 Sep 08

Security-feature bypass in Microsoft Visual Studio Code before 1.136.2 lets a remote, unauthenticated attacker defeat a

CVE-2026-102238 CRITICAL
9.6 Oct 13

Remote code execution in Visual Studio Code (versions 1.0.0 up to but not including 1.141.1) is achievable through a pat

CVE-2026-47281 CRITICAL
9.6 Jun 09

Privilege escalation in Microsoft Visual Studio Code allows remote unauthenticated attackers to elevate privileges over

CVE-2021-43891 HIGH
7.8 Dec 15

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent

CVE-2026-121663 HIGH
8.8 Nov 10

Security feature bypass in Visual Studio Code before 1.145.3 allows an unauthenticated remote attacker to evade a securi

CVE-2026-119975 HIGH
8.8 Nov 10

Cross-site scripting in Visual Studio Code before 1.145.3 can let unauthenticated, network-reachable attackers run attac

CVE-2026-57102 HIGH
8.8 Jul 14

Security-feature bypass in Microsoft Visual Studio Code lets a remote attacker deliver functionality from an untrusted c

CVE-2026-59113 HIGH
8.8 Aug 11

Remote code execution in Visual Studio Code (versions 1.0.0 through 1.132.0) is enabled by a missing authorization check

CVE-2026-69370 HIGH
8.8 Oct 13

Command injection in Visual Studio Code 1.0.0 through 1.141.0 allows an unauthenticated remote attacker to execute arbit

CVE-2026-102235 HIGH
8.8 Oct 13

Remote code execution in Visual Studio Code versions 1.0.0 through 1.141.1 allows an unauthenticated, network-positioned

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy