Skip to main content

Visual Studio Code CVE-2026-69320

| EUVDEUVD-2026-56561 HIGH
OS Command Injection (CWE-78)
2026-08-11 secure@microsoft.com GHSA-5948-chc9-3jrw
8.8
CVSS 3.1 · Vendor: microsoft
View

Attack ChainAIDerived

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

  1. Access
    Host malicious repository or workspace
  2. Delivery
    Socially engineer developer to open content
  3. Exploit
    VS Code passes unsanitized input to OS shell
  4. Execution
    Injected shell commands execute
  5. Impact
    Attacker gains code execution as victim user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

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

Exploitation Conditions

User interaction is required (UI:R per CVSS vector): a victim must open or interact with attacker-controlled content within VS Code, such as a malicious workspace folder, repository, or configuration file. The CVSS vector PR:N indicates no attacker privileges are required on the target system - the attacker only needs the victim to open the crafted content. Exploitation is limited by the need for this user interaction, meaning fully automated remote exploitation without victim participation is not supported by the available data. No specific non-default configuration is stated as a prerequisite in the description; however, the exact triggering feature (e.g., task runner, terminal, extension) is not specified in available data and should be confirmed via the MSRC advisory. Platform scope is not restricted in available data - VS Code runs on Windows, macOS, and Linux, and all platforms may be affected.

Impact

The CVSS 8.8 score is well-supported by the vector: network-exploitable (AV:N), low complexity (AC:L), no attacker privileges required (PR:N), and full CIA impact (C:H/I:H/A:H). The one meaningful friction point is UI:R - a victim must perform some interaction, such as opening a malicious workspace folder, cloning a crafted repository, or triggering a task, which limits fully automated mass exploitation but does not materially reduce targeted risk. No EPSS data was provided, so exploitation probability cannot be quantified from available signals. CISA KEV is absent, meaning active exploitation is not confirmed, and no public POC is referenced. The attack surface for VS Code is notable: developers routinely open untrusted code repositories, making social engineering or supply-chain-style delivery (e.g., a malicious open-source repo) a plausible delivery mechanism. The combination of high CVSS, no confirmed exploitation, and user-interaction requirement suggests this is a real priority for developer-facing organizations but is not currently a mass-exploitation emergency.

Exploit ScenarioDerived

An attacker hosts or contributes a malicious repository containing a crafted VS Code workspace configuration file (e.g., .vscode/tasks.json or settings.json) with embedded shell metacharacters in a field that VS Code passes unsanitized to the OS command interpreter. When a developer clones and opens the repository in VS Code, the injected OS commands execute automatically or upon the first build/task trigger, granting the attacker code execution with the developer's OS privileges. No public proof-of-concept is referenced at time of analysis, but the attack surface - developers routinely opening third-party repositories - is well-understood and widely exploited in analogous scenarios.

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

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

Alert me

AnalysisAIv1 – Aug 11, 2026

OS command injection in Visual Studio Code exposes victims to remote code execution when they interact with attacker-controlled content, such as a malicious workspace, repository, or file. The vulnerability (CWE-78) stems from improper neutralization of shell metacharacters in input passed to OS-level command execution routines, giving an unauthenticated network attacker the ability to run arbitrary commands with the privileges of the VS Code process. No active exploitation has been confirmed by CISA KEV, and no public proof-of-concept is referenced at time of analysis.

RemediationAI

The primary remediation is to apply any patch or updated release of Visual Studio Code identified in the Microsoft Security Response Center advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-69320. No specific fixed version number was included in the available intelligence data, so the exact upgrade target must be obtained directly from the MSRC advisory. Vendor-released patch status is confirmed as 'patch available per vendor advisory' based on MSRC publication, but the precise fix version was not independently verifiable from the provided data. As a compensating control pending patching, organizations should restrict VS Code usage in environments where untrusted workspaces or repositories are routinely opened, and consider disabling or constraining VS Code's task runner and terminal integration features for users who do not require them, noting that this will degrade developer workflow functionality. Enforcing code signing or provenance checks on workspace configurations before opening them can also reduce the attack surface.

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-78 (Improper Neutralization of Special Elements used in an OS Command) indicates that Visual Studio Code fails to sanitize or escape shell metacharacters - such as semicolons, backticks, pipes, or command substitution sequences - before passing user-influenced data to a system shell or OS command API. Visual Studio Code is an Electron-based editor built on Node.js, and it regularly invokes underlying OS shells for integrated terminal sessions, build task runners, debugger launch configurations, and extension host processes. Any of these integration points that accept external input (e.g., from a cloned repository's workspace configuration, a crafted extension manifest, or a remote development session) could serve as an injection surface. No CPE strings were included in the source data, so exact affected versions cannot be independently confirmed; affected version range should be verified against the Microsoft Security Response Center advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-69320.

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 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
ENISA EUVD HIGH
vuln.today AI 8.8 HIGH

Network-exploitable with no attacker privileges, but requires victim to open malicious content (UI:R); full OS command execution yields high CIA impact.

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 VectorVendor: microsoft

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
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

DescriptionCVE.org

Improper neutralization of special elements used in an os command ('os command injection') in Visual Studio Code allows an unauthorized attacker to execute code over a network.

Executive ViewAI

Why It Matters

Visual Studio Code contains an OS command injection vulnerability (CVE-2026-69320, CVSS 8.8) enabling remote code execution when developers open attacker-controlled workspaces or repositories. This poses a critical risk to your development organization, as compromised developer machines could provide attackers access to source code, credentials, and internal systems. No public exploit identified at time of analysis; however, no vendor-released patch is available, requiring immediate compensating controls.

Business Impact: High
Compensating Controls

Disable or restrict VS Code workspace trust features; prohibit opening untrusted repositories or workspaces through organizational policy; implement enhanced process monitoring and logging on developer machines to detect suspicious command execution; restrict VS Code to limited user accounts without elevated privileges or unrestricted shell access; require code review before opening external repositories; segment developer network access to limit lateral movement from compromised machines. Maintain all controls until a patch becomes available.

Threat Intelligence Overview

EPSS Score
0.5%
Top 62% exploitable
Prevalence
High
VS Code is the dominant IDE across developer ecosystems globally
Threat Intel
1
1 sources
Vendor Status
Publicly Disclosed:No
Exploited:No
Latest Software Release:Exploitation Unlikely
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.5%
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

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

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

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-70336 HIGH
8.8 Aug 11

Remote code execution in Microsoft Visual Studio Code allows a network-based attacker to inject and execute arbitrary co

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