Skip to main content

Visual Studio Code EUVDEUVD-2026-35502

| CVE-2026-47292 HIGH
Code Injection (CWE-94)
2026-06-09 secure@microsoft.com GHSA-5qvv-w9jp-w335
7.8
CVSS 3.1 · Vendor: microsoft
Temporal: 6.8
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious workspace/repo
  2. Delivery
    Deliver via phishing or public repo
  3. Exploit
    Victim opens folder in VS Code
  4. Execution
    Untrusted functionality auto-loads
  5. Persist
    Code injection executes as user
  6. Impact
    Harvest credentials and pivot

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 the victim to open attacker-controlled content (a repository, folder, workspace file, or project) in Visual Studio Code on their local machine - this is the UI:R user interaction baked into the CVSS vector. Limiting factors: the attacker must first deliver the malicious project to the developer (phishing, supply-chain repo, malicious clone link); the user must actually open it in VS Code rather than just downloading it; and if Workspace Trust is enabled and the folder is opened in Restricted Mode, many code-execution surfaces (tasks, debug configs, most extensions) are blocked, materially raising the bar. Authentication requirements not confirmed from available data beyond CVSS PR:N, which here means no prior privileges on the VS Code process are needed by the attacker.

Impact

The CVSS vector AV:L/AC:L/PR:N/UI:R paints a clear picture: exploitation needs local context and user interaction (typically opening a malicious folder or file in VS Code), but no prior authentication on the target process and low attack complexity, with high CIA impact yielding a 7.8 base score. There is no EPSS score, no KEV listing, no public POC reference, and only a single MSRC advisory pointer in the provided data, suggesting this is currently a vendor-disclosed issue without observed in-the-wild abuse. The MSRC label 'elevate privileges locally' is somewhat in tension with the typical VS Code threat model (code execution as the current user rather than EoP to SYSTEM) - the precise privilege boundary crossed is not documented in the provided data and should be confirmed against the MSRC advisory before treating this as a SYSTEM-level EoP. Realistic priority is moderate-to-high for developer fleets given VS Code's massive install base and the common 'clone-and-open' workflow that satisfies the UI:R prerequisite.

Exploit ScenarioDerived

An attacker publishes a booby-trapped repository (or sends a ZIP via phishing) containing crafted workspace metadata, tasks, or extension references; when a developer clones the repo and opens it in Visual Studio Code, the editor loads functionality from the attacker-controlled location and executes attacker code under the developer's account. From there the adversary can steal SSH keys, cloud credentials, source code, and pivot into CI/CD systems - no public POC has been identified in the provided data.

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

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

Alert me

AnalysisAIv1 – Jun 09, 2026

Local privilege elevation in Microsoft Visual Studio Code allows an unprivileged attacker to gain higher privileges on a host by tricking a user into triggering inclusion of functionality from an untrusted control sphere (CWE-94 code injection class). The flaw requires user interaction and local access per the CVSS vector (AV:L/UI:R), yielding full confidentiality, integrity, and availability impact at CVSS 7.8. No public exploit identified at time of analysis and the issue is not listed in CISA KEV.

RemediationAI

Patch availability is indicated by the MSRC update-guide reference but no exact fixed version is present in the supplied data, so the practical step is to consult https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-47292 and upgrade Visual Studio Code to the patched build identified there across all developer endpoints, then verify via Help > About. Compensating controls while patching rolls out: instruct users to avoid opening untrusted repositories or archives in VS Code, keep Workspace Trust enabled (Settings > security.workspace.trust.enabled = true) so untrusted folders open in restricted mode that blocks tasks, debugging, and most extensions - accepting the trade-off that developers must explicitly trust legitimate workspaces; disable automatic execution of tasks and debug configurations on folder open; and consider blocking auto-installation of unvetted extensions via the extensions.autoUpdate and allowed-extensions enterprise policies, which adds review overhead but reduces the untrusted-content attack surface.

Affected VersionsENISA

Visual Studio Code - MSSQL Extension 1.0.0 <1.123.1

Affected Packages

microsoft visual_studio_code_mssql_extension_1_123_1 fix: Visual Studio Code - MSSQL Extension 1.123.1
euvd visual_studio_code_mssql_extension fix: 1.123.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in microsoft, 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 Microsoft's cross-platform Electron-based source code editor that loads extensions, workspace settings, tasks, and scripts from project directories. CWE-94 (Improper Control of Generation of Code / 'Code Injection') combined with the MSRC categorization of 'Inclusion of functionality from untrusted control sphere' indicates VS Code is loading or executing code from a location an attacker can influence - common patterns include workspace-scoped settings, debug configurations, task definitions, or extension manifests that get auto-evaluated when a project is opened. Because VS Code runs renderer and extension host processes under the invoking user's token, code injected through these untrusted channels executes with that user's privileges, which on developer workstations is frequently a local admin or a user with access to sensitive credentials, source code, and signing keys.

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 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
ENISA EUVD HIGH
CIRCL (temporal) 6.8 MEDIUM

Primary rating from Vendor (microsoft).

CVSS VectorVendor: microsoft

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

Lifecycle Timeline

1
Patch available
Jun 09, 2026 - 19:03 EUVD

DescriptionCVE.org

Inclusion of functionality from untrusted control sphere in Visual Studio Code allows an unauthorized attacker to elevate privileges locally.

Executive ViewAI

Why It Matters

A flaw in Microsoft Visual Studio Code allows attackers with local access to developer workstations to gain complete system control, creating exposure for theft of proprietary code, intellectual property, and credentials. Development teams represent both direct targets and potential entry points for broader organizational compromise.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Enforce host-based access controls limiting local administrative access to developer machines; (2) Deploy EDR with privilege escalation detection; (3) Monitor VS Code extension directories and execution paths for anomalous activity; (4) Restrict extension installation from untrusted sources via configuration management; (5) Conduct developer security awareness training on code execution risks from untrusted sources; (6) Maintain detailed access logging on development workstations for incident investigation capability.

Threat Intelligence Overview

EPSS Score
0.2%
Top 64% exploitable
Threat Intel
1
1 sources
Vendor Action
See Below
Required. The vulnerability documented by this CVE requires customer action to resolve.
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.2%
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
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
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.

Related Vulnerabilities in Visual Studio Code Security Feature Bypass Flaws

View all 4
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-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