Skip to main content

Visual Studio Code CVE-2026-47285

| EUVDEUVD-2026-56306 MEDIUM
Command Injection (CWE-77)
2026-08-11 secure@microsoft.com GHSA-576p-g2qh-236v
6.5
CVSS 3.1 · Vendor: microsoft
View

Attack ChainAIDerived

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

  1. Access
    Attacker crafts malicious workspace config with injected commands
  2. Delivery
    Distributes via public repository, phishing, or shared workspace
  3. Exploit
    Victim opens workspace in unpatched VS Code
  4. Execution
    VS Code invokes task/launch config triggering command injection
  5. Persist
    Injected command reads sensitive local data
  6. Impact
    Data 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.9% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

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

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

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

Network delivery with mandatory victim interaction; attacker needs no privileges; impact is confidentiality-only with no integrity or availability consequence.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/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
None
Availability
None

Lifecycle Timeline

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

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

EPSS Score
0.9%
Top 44% exploitable
Prevalence
High
dominant code editor across enterprise developer and DevOps environments worldwide
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +32
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-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

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

CVE-2026-78462 HIGH
8.8 Sep 08

Authorization bypass in Visual Studio Code versions 1.0.0 through 1.136.1 allows an unauthenticated network attacker to

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