Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify VS Code instance with network listener exposed
-
DeliverySend crafted input to vulnerable endpoint
-
ExploitBypass authentication via input validation flaw
-
ExecutionTrigger privileged handler with attacker payload
-
PersistExecute actions in developer user context
-
ImpactExfiltrate source, credentials, or pivot internally
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | The VS Code instance must be reachable over a network channel that the editor processes before authentication - most plausibly a Remote/Server/Tunnel listener, Live Share session, or debug adapter port - since the CVSS vector is AV:N/PR:N/UI:N and the tag 'Authentication Bypass' indicates the flaw sits in pre-auth input handling. Exploitation is limited by AC:H, meaning the attacker needs conditions outside their control to align (likely a specific VS Code feature enabled such as Remote Tunnels or Live Share, a particular workspace state, or a race/timing window), and is constrained to versions 1.0.0 through 1.119.0; instances on 1.119.1 or later, or with all network-exposed collaboration features disabled, are not exploitable. The MSRC advisory should be consulted to confirm exactly which subsystem accepts the malformed input, as that detail is not in the public NVD description. |
| Impact | The signals here are genuinely mixed and warrant a nuanced priority. The CVSS 3.1 score of 8.1 (AV:N/AC:H/PR:N/UI:N) describes a remote, unauthenticated, no-user-interaction path with full CIA impact, and SSVC confirms 'total' technical impact, which on paper makes this high severity. However, the CVSS attack complexity is High (meaning specialised conditions outside attacker control must align), SSVC marks the issue as not automatable with exploitation status 'none', EPSS is only 0.09% (26th percentile), and there is no CISA KEV listing or public POC. The 'AV:N/UI:N' rating is unusual for a desktop editor and conflicts with how VS Code is typically reached - verify with Microsoft's MSRC advisory whether the network vector requires the user to open a specific workspace, connect to a Remote/Tunnel endpoint, or expose a Live Share/debug session, because that distinction sharply changes real-world exposure. Treat as a meaningful patch priority for fleets of developer workstations (especially those using Remote Tunnels or Live Share) but not a drop-everything incident absent in-the-wild activity. |
| Exploit ScenarioDerived | An attacker hosts a malicious endpoint - for example a crafted Remote Tunnel, Live Share session, or rogue extension-update service - and entices a developer's VS Code client to contact it, sending malformed protocol input that bypasses the editor's authentication check and is processed by a privileged handler. The handler executes attacker-controlled actions in the developer's user context (file write, command execution, or credential exfiltration from the editor's secret storage), giving the attacker the same access level as the developer including SSH keys and source repositories. No public exploit identified at time of analysis, and the High attack complexity means the attacker must align specific timing or configuration conditions for the bypass to succeed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 11, 2026
Privilege escalation in Microsoft Visual Studio Code versions 1.0.0 through 1.119.0 allows remote unauthenticated attackers to elevate privileges over a network by exploiting improper input validation (CWE-20). Microsoft has released a patched build (1.119.1) and SSVC rates technical impact as total, though EPSS remains low at 0.09% with no public exploit identified at time of analysis.
Earlier versions of this analysis (2)
Network-based privilege elevation in Microsoft Visual Studio Code versions 1.0.0 through 1.119.0 allows remote attackers to gain elevated privileges by exploiting improper input validation (CWE-20). Microsoft has released a fix in version 1.119.1, and while no public exploit identified at time of analysis, the SSVC technical impact is rated as total, meaning successful exploitation grants full control over the affected component. EPSS probability is low at 0.09%, indicating exploitation in the wild is currently unlikely despite the high CVSS score of 8.1.
Privilege elevation in Microsoft Visual Studio Code allows remote attackers to gain elevated privileges over a network by exploiting an improper input validation flaw (CWE-20). Exploitation requires user interaction and has high attack complexity, but successful attacks yield high confidentiality, integrity, and availability impact. No public exploit identified at time of analysis, and the issue is not currently listed in CISA KEV.
RemediationAI
Vendor-released patch: Visual Studio Code 1.119.1 - upgrade all instances to 1.119.1 or later via the in-app auto-updater, MSI/DEB/RPM packages, or your endpoint management tool, using the Microsoft advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40376 as the authoritative reference. No vendor-supplied workaround is published; compensating controls until rollout completes include disabling Remote Tunnels (settings 'remote.tunnels.access') and Live Share on managed workstations to remove the externally reachable surface (trade-off: blocks remote pair programming and cloud-hosted dev workflows), restricting outbound connections from VS Code processes to known Microsoft endpoints via host firewall (may break marketplace updates if over-restricted), and requiring users to only open trusted workspaces under Workspace Trust (already default, but verify policy enforcement). Cross-reference VulDB entry https://vuldb.com/vuln/369591 for additional triage data.
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 Microsoft's cross-platform source-code editor built on the Electron framework, which combines Chromium and Node.js to execute web technologies with local OS privileges. The root cause is CWE-20 (Improper Input Validation), meaning the editor accepts data from a network-reachable surface without enforcing expected syntactic, semantic, or length constraints before passing it to a privileged operation. The single CPE microsoft:visual_studio_code:* confirms the desktop editor itself is in scope rather than a specific extension, and the 'Authentication Bypass' tag indicates the malformed input is processed before any identity check is enforced, allowing the attacker's input to reach privileged code paths intended for authenticated users.
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:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Pre-auth network input handler (AV:N/PR:N/UI:N) with specialised timing/config prerequisites (AC:H) yielding full code-execution-class impact in the user's context (C:H/I:H/A:H, S:U).
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
Improper input validation in Visual Studio Code allows an unauthorized attacker to elevate privileges over a network.
Executive ViewAI
Microsoft Visual Studio Code versions prior to 1.119.1 contain a privilege escalation vulnerability enabling remote attackers to gain full system access on developer workstations. This directly exposes organizations' source code, intellectual property, and build infrastructure to compromise. Developer machines represent high-value targets for supply chain attacks, making urgent patching essential.
Apply vendor patch.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
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 Visual Studio Code before 1.145.3 allows an unauthenticated remote attacker to evade a securi
Cross-site scripting in Visual Studio Code before 1.145.3 can let unauthenticated, network-reachable attackers run attac
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
EUVD-2026-35536
GHSA-rg3p-gp39-622w
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB