Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious workspace/repo
-
DeliveryDeliver via phishing or public repo
-
ExploitVictim opens folder in VS Code
-
ExecutionUntrusted functionality auto-loads
-
PersistCode injection executes as user
-
ImpactHarvest 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from Vendor (microsoft).
CVSS VectorVendor: microsoft
Lifecycle Timeline
1DescriptionCVE.org
Inclusion of functionality from untrusted control sphere in Visual Studio Code allows an unauthorized attacker to elevate privileges locally.
Executive ViewAI
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.
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
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
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 4More 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
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-35502
GHSA-5qvv-w9jp-w335
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB