Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malicious workspace config with injected commands
-
DeliveryDistributes via public repository, phishing, or shared workspace
-
ExploitVictim opens workspace in unpatched VS Code
-
ExecutionVS Code invokes task/launch config triggering command injection
-
PersistInjected command reads sensitive local data
-
ImpactData exfiltrated to attacker server over network
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK
1 technique 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: the victim must actively open attacker-controlled content in VS Code - such as a malicious workspace folder, a crafted tasks.json or launch.json configuration, or a repository containing injected command strings - as confirmed by the CVSS UI:R metric. No authentication or privileges are required on the attacker's side (PR:N per CVSS vector). The vulnerability is bounded to VS Code installations running versions below 1.132.1. Impact is limited to confidentiality - integrity and availability of the victim system are not directly affected. Exploitation is constrained by the victim-interaction requirement, ruling out automated scanning or worm-style propagation; however, supply chain scenarios (malicious public repositories or shared workspace configurations) and spear-phishing delivery are realistic vectors. The attack is platform-agnostic given VS Code's cross-platform nature. |
| Impact | The CVSS base score of 6.5 (Medium) reflects a network-accessible, low-complexity attack requiring no attacker privileges but mandating victim interaction (AV:N/AC:L/PR:N/UI:R). The confidentiality-only impact (C:H/I:N/A:N) bounds the worst-case outcome to information disclosure rather than full system compromise or availability disruption - a meaningful constraint that prevents this from being a critical-tier finding despite the high confidentiality impact metric. No EPSS score was provided in the available intelligence, so probabilistic exploitation likelihood cannot be quantified. The absence of a CISA KEV listing and no identified public POC further reduces urgency relative to the CVSS score alone. However, the attack is viable in targeted phishing or malicious-repository scenarios due to the zero-privileges-required posture: an attacker need only induce the victim to open a crafted workspace. Developers who routinely clone and open third-party repositories represent an elevated-risk population. The UI:R requirement prevents automated mass exploitation. Overall, this is a genuine medium priority for organizations with large VS Code deployments, particularly those where developers regularly open external or community-sourced repositories. |
| Exploit ScenarioDerived | An attacker embeds malicious command sequences within a VS Code workspace configuration file (e.g., tasks.json or launch.json) in a public or privately distributed repository. When a developer clones the repository and opens it in a vulnerable VS Code instance, the injected commands execute within the VS Code process context and exfiltrate sensitive local data - such as environment variables containing API keys, SSH agent sockets, or local credential files - to an attacker-controlled server over the network. No public POC has been identified at time of analysis, but the attack is straightforward to construct for an attacker with knowledge of VS Code workspace internals. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
Command injection in Visual Studio Code versions prior to 1.132.1 enables remote unauthenticated attackers to disclose sensitive information from a victim's system over a network. Exploitation requires user interaction - the victim must open or engage with attacker-controlled content such as a malicious workspace, configuration file, or repository - consistent with the CVSS UI:R metric. No public exploit code or CISA KEV listing is identified at time of analysis; a vendor-released patch (1.132.1) is available via the Microsoft Security Response Center.
RemediationAI
Upgrade Visual Studio Code to version 1.132.1 or later, which contains the vendor-released patch. The authoritative advisory and update guidance is available at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-47285. As a compensating control prior to patching, users should leverage VS Code's Workspace Trust feature to restrict untrusted workspaces from executing tasks, launch configurations, or extensions automatically - enabling restricted mode for unknown or externally sourced workspaces will prevent automatic execution of injected commands, though it may disable some workspace-level functionality. Users should also avoid opening repositories or workspace folders from untrusted or unknown sources. Restricting the VS Code integrated terminal's ability to run workspace-defined tasks in sensitive environments provides an additional layer of defense. Note that overly aggressive workspace trust policies may impede developer productivity.
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
Visual Studio Code is a cross-platform source code editor developed by Microsoft, with deep integration of workspace configurations, extension APIs, task runners, and terminal subsystems. The root cause is CWE-77 (Improper Neutralization of Special Elements used in a Command), a command injection class in which attacker-controlled input is embedded into a command string without adequate sanitization, allowing injection of additional shell or subprocess commands. In VS Code's architecture, this commonly manifests in features that invoke external processes using workspace-supplied data - such as task configurations (tasks.json), launch configurations, or extension-provided shell integration - where insufficient escaping permits command injection. Affected versions span Visual Studio Code 1.0.0 through 1.132.0, as derived from the EUVD version range (< 1.132.1).
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:N/A:N
Network delivery with mandatory victim interaction; attacker needs no privileges; impact is confidentiality-only with no integrity or availability consequence.
Primary rating from Vendor (microsoft).
CVSS VectorVendor: microsoft
Lifecycle Timeline
2DescriptionCVE.org
Improper neutralization of special elements used in a command ('command injection') in Visual Studio Code allows an unauthorized attacker to disclose information over a network.
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 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
Remote code execution in Visual Studio Code versions 1.0.0 through 1.141.1 allows an unauthenticated, network-positioned
Authorization bypass in Visual Studio Code versions 1.0.0 through 1.136.1 allows an unauthenticated network attacker to
EUVD-2026-56306
GHSA-576p-g2qh-236v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB