Skip to main content

Visual Studio Code CVE-2026-47281

| EUVDEUVD-2026-35573 CRITICAL
Missing Authentication for Critical Function (CWE-306)
2026-06-09 secure@microsoft.com GHSA-rgv4-j5p6-g338
9.6
CVSS 3.1 · Vendor: microsoft
Temporal: 8.3
View

Attack ChainAIDerived

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

  1. Recon
    Identify developer target
  2. Delivery
    Deliver malicious link or workspace
  3. Exploit
    Victim clicks vscode:// URI or opens folder
  4. Install
    Input validation bypassed in VS Code
  5. C2
    Scope-change escalates privileges on host
  6. Execute
    Execute code with developer's identity
  7. Impact
    Pivot to source code and cloud credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK

1 technique across 1 tactic: 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 a victim running Visual Studio Code to perform a single user interaction (UI:R in the CVSS vector) - likely clicking a vscode:// deep-link URI, opening a malicious workspace/folder, or accepting a crafted prompt - but does NOT require any authentication to the target system or pre-existing privileges on the VS Code host (PR:N). The attack is delivered over the network (AV:N) at low complexity (AC:L), so no special target configuration is needed beyond a vulnerable VS Code build being installed and the user being induced to interact. Limiting factors: the victim must actively trigger the malicious content, and organizations enforcing Workspace Trust, disabled URI protocol handlers, or extension allowlists raise the bar for delivery.

Impact

The 9.6 CVSS score is driven by network attack vector (AV:N), low complexity (AC:L), no privileges required (PR:N), scope change (S:C), and full CIA impact (C:H/I:H/A:H), tempered only by required user interaction (UI:R) - typically a victim clicking a malicious link, opening a crafted workspace, or accepting an extension/URI prompt. EPSS data is not provided in the available intelligence, and the CVE is not listed in CISA KEV, so real-world exploitation probability cannot be quantitatively assessed. The combination of network reachability, no authentication, scope change, and VS Code's developer-workstation footprint (high-value targets with credentials, source code, and cloud tokens) elevates this above a typical UI:R client-side flaw - developer machines are prime initial-access targets for supply-chain attacks. However, key intelligence is missing: no technical writeup, no PoC, no patched version string in the provided data, and only an MSRC reference URL is available - defenders must consult the live MSRC advisory to confirm affected builds.

Exploit ScenarioDerived

An attacker hosts a malicious web page or sends a crafted link (chat, email, Slack) to a developer; when the developer clicks the link or opens an attacker-supplied workspace, VS Code's vulnerable input-validation path accepts the network-sourced payload without authentication and the scope-changed flaw escalates the attacker's privileges on the host. No public exploit is identified at time of analysis, but the user-interaction requirement is low-friction in developer workflows where opening repos, gists, and shared URIs is routine.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 09, 2026

Privilege escalation in Microsoft Visual Studio Code allows remote unauthenticated attackers to elevate privileges over a network when a victim performs a required interaction, due to improper input validation classified as missing authentication (CWE-306). The flaw carries a critical CVSS 9.6 score with scope change, meaning a successful attack impacts resources beyond the vulnerable component. No public exploit identified at time of analysis, but the user-interaction trigger combined with VS Code's massive developer install base makes this a notable supply-chain-adjacent risk.

RemediationAI

Patch available per vendor advisory - consult the Microsoft Security Response Center page at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-47281 to identify the exact fixed VS Code build and apply the update across developer workstations; enabling VS Code's auto-update channel is the most reliable path. As compensating controls until patching is complete, disable or unregister the vscode:// and vscode-insiders:// URI handlers at the OS level to break the network-delivered click-through attack path (side effect: breaks legitimate deep links from documentation and GitHub 'Open in VS Code' buttons), block opening workspaces and folders from untrusted sources by enforcing Workspace Trust and disabling 'Trust workspace' prompts via policy, and restrict installation of marketplace extensions to an allowlist via the extensions.allowed setting. Network-egress filtering alone will not mitigate this since attacks are likely delivered via web content the user already trusts to render.

Affected VersionsENISA

Visual Studio Code 1.0.0 <1.123.1

Affected Packages

microsoft visual_studio_code_1_123_1 fix: Visual Studio Code 1.123.1
euvd visual_studio_code 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 code editor built on Electron, embedding Chromium and Node.js, and supports extensions, remote development, and various URI handlers (vscode://, vscode-insiders://) that can deep-link into the editor. The root cause is CWE-306 (Missing Authentication for Critical Function), which in this context - combined with the 'Authentication Bypass' tag and AV:N attack vector - indicates that a network-reachable code path inside VS Code accepts attacker-controlled input without verifying caller identity or trust boundaries. The scope-changed CVSS vector (S:C) suggests the vulnerable component's authorization boundary is crossed, allowing impact on the host operating system or other components beyond the editor process itself.

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

Primary rating from Vendor (microsoft).

CVSS VectorVendor: microsoft

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Improper input validation in Visual Studio Code allows an unauthorized attacker to elevate privileges over a network.

Executive ViewAI

Why It Matters

Microsoft Visual Studio Code contains a critical privilege escalation vulnerability (CVE-2026-47281, CVSS 9.6) allowing unauthenticated remote attackers to elevate privileges on developer workstations with minimal user interaction. No vendor patch is currently available, creating immediate exposure across the organization's developer base and potential downstream supply-chain risk. Leadership must treat all unpatched VS Code installations as compromised until Microsoft releases and deploys a fix.

Business Impact: Severe
Compensating Controls

Until vendor-released patch becomes available: (1) Run VS Code with minimal required user privileges only; (2) Implement network segmentation preventing developer workstations from direct internet access; (3) Disable VS Code extension installation through group policy to prevent supply-chain expansion; (4) Enable process-level audit logging on all VS Code executions; (5) Consider temporary work-from-office protocols for critical development work if remote work exposes systems; (6) Establish daily patch-availability monitoring process. Apply vendor patch immediately upon release and verify deployment within 48 hours.

Threat Intelligence Overview

EPSS Score
0.1%
Top 77% 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 Unlikely
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

53
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +48
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: +5

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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

CVE-2026-69320 HIGH
8.8 Aug 11

OS command injection in Visual Studio Code exposes victims to remote code execution when they interact with attacker-con

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