Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHost malicious repository or workspace
-
DeliverySocially engineer developer to open content
-
ExploitVS Code passes unsanitized input to OS shell
-
ExecutionInjected shell commands execute
-
ImpactAttacker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Network-exploitable with no attacker privileges, but requires victim to open malicious content (UI:R); full OS command execution yields high CIA impact.
Primary rating from Vendor (microsoft).
CVSS VectorVendor: microsoft
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
More in Visual Studio Code
View allVisual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent
Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 8.8), this vulnerability is remotely e
Security-feature bypass in Microsoft Visual Studio Code before 1.136.2 lets a remote, unauthenticated attacker defeat a
Remote code execution in Visual Studio Code (versions 1.0.0 up to but not including 1.141.1) is achievable through a pat
Privilege escalation in Microsoft Visual Studio Code allows remote unauthenticated attackers to elevate privileges over
Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent
Security feature bypass in Visual Studio Code before 1.145.3 allows an unauthenticated remote attacker to evade a securi
Cross-site scripting in Visual Studio Code before 1.145.3 can let unauthenticated, network-reachable attackers run attac
Security-feature bypass in Microsoft Visual Studio Code lets a remote attacker deliver functionality from an untrusted c
Remote code execution in Visual Studio Code (versions 1.0.0 through 1.132.0) is enabled by a missing authorization check
Command injection in Visual Studio Code 1.0.0 through 1.141.0 allows an unauthenticated remote attacker to execute arbit
Remote code execution in Microsoft Visual Studio Code allows a network-based attacker to inject and execute arbitrary co
EUVD-2026-56561
GHSA-5948-chc9-3jrw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB