CVE-2026-40376

Visual Studio Code Elevation of Privilege Vulnerability

Published Jun 9, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Improper input validation in Visual Studio Code allows an unauthorized attacker to elevate privileges over a network.

Analysis

AI-generated

Technical impact

The vulnerability arises from improper input validation within Visual Studio Code, permitting an attacker lacking authorization to gain elevated privileges over a network connection. This flaw is classified as input validation failure, aligning with CWE-20. Because the attacker can exploit this to elevate privileges, the potential impact includes unauthorized data access, configuration changes, or execution of further malicious actions with higher privileges. The scope extends across any user interacting with the affected software over the network.

Affected Systems

The flaw affects Microsoft Visual Studio Code. Specific version information was not provided, so the issue may be present across multiple releases until patched. All installations that expose VS Code to network traffic are potentially vulnerable.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity of the flaw. The EPSS score indicates a probability of exploitation of less than 1%. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, the attacker must be able to interact with VS Code over a network, suggesting the attack vector is likely network-based. No additional prerequisites were specified, implying that any remote user who can send crafted input to VS Code may be able to exploit the flaw.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Visual Studio Code update from Microsoft.
  • Configure network controls or a firewall to restrict inbound and outbound traffic to the VS Code application to only trusted sources.
  • Implement monitoring of VS Code logs for unusual input patterns or elevated privilege activity.

Generated by OpenCVE AI on June 11, 2026 at 22:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Improper input validation in Visual Studio Code allows an unauthorized attacker to elevate privileges over a network.
Title Visual Studio Code Elevation of Privilege Vulnerability
First Time appeared Microsoft
Microsoft visual Studio Code
Weaknesses CWE-20
CPEs cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:*:*:*
Vendors & Products Microsoft
Microsoft visual Studio Code
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
microsoft
Published
Updated
Nov 19, 2026, 10:14 PM
Reserved
Apr 11, 2026, 11:06 PM
Status
Analyzed
Published
Jun 9, 2026, 5:17 PM
Modified
Jul 23, 2026, 8:10 AM