CVE-2026-50520

Visual Studio Code Remote Code Execution Vulnerability

Published Jul 14, 2026 CVSS 3.1 · 8.4 High EPSS < 1% KEV · Not listed
Description
Improper neutralization of special elements used in a command ('command injection') in Visual Studio Code allows an unauthorized attacker to execute code locally.

Analysis

AI-generated

Technical impact

Visual Studio Code contains a command‑injection flaw due to improper neutralization of special elements within command strings. This weakness, identified as CWE‑77, permits an attacker to craft input that is executed by the underlying operating‑system shell, allowing arbitrary code to run with the same privileges as the user running VS Code. An exploit could lead to compromise of confidentiality, integrity, or availability on the client machine.

Affected Systems

Microsoft Visual Studio Code is the affected product. Specific vulnerable releases are not enumerated in the available data, but any installation of VS Code that has not been updated to the latest version from the Microsoft security update guide may be at risk. Operators should verify the version and apply the published fix.

Risk and Exploitability

The CVSS score of 8.4 classifies the vulnerability as high severity. The EPSS score of <1 % indicates a low current probability of exploitation, and it is not currently listed in CISA’s KEV catalog. The attack likely requires an unauthorized user with local access to the machine to inject malicious commands; no publicly documented exploits are known. Nevertheless, the high potential impact warrants immediate remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Visual Studio Code to the latest version that includes the CVE‑2026‑50520 fix.
  • Temporarily disable or remove extensions or features that allow command execution until the patch is applied.
  • Run VS Code under a non‑privileged user account or employ system‑level sandboxing (e.g., AppArmor, SELinux) to restrict shell access until the vulnerability is fixed.

Generated by OpenCVE AI on July 31, 2026 at 09:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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 neutralization of special elements used in a command ('command injection') in Visual Studio Code allows an unauthorized attacker to execute code locally.
Title Visual Studio Code Remote Code Execution Vulnerability
First Time appeared Microsoft
Microsoft visual Studio Code
Weaknesses CWE-77
CPEs cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:*:*:*
Vendors & Products Microsoft
Microsoft visual Studio Code
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

Sources

Status
PUBLISHED
Assigner
microsoft
Published
Updated
Nov 10, 2026, 10:35 PM
Reserved
Jun 4, 2026, 7:00 PM
Status
Analyzed
Published
Jul 14, 2026, 5:17 PM
Modified
Oct 24, 2026, 9:10 PM