---
id: CVE-2026-50520
title: Visual Studio Code Remote Code Execution Vulnerability
summary: >-
  Improper neutralization of special elements used in a command ('command
  injection') in Visual Studio Code allows an unauthorized attacker to execute
  code locally.
severity: high
cvss: 8.4
cvssVector: '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'
cvssSource: cna
cwe:
  - CWE-77
vendor: Microsoft
product: Visual Studio Code
affected:
  - visual_studio_code >= 1.0.0 < 1.128.1
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-07-10T00:00:00+00:00'
published: '2026-07-14'
updated: '2026-09-17'
sourceUpdated: '2026-09-17T22:29:07.961Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-50520'
references:
  - url: 'https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-50520'
    label: Visual Studio Code Remote Code Execution Vulnerability
tags:
  - cve.org
epss: 0.00352
epssPercentile: 0.28977
ingestedAt: '2026-09-08T17:06:31.929Z'
---

## Overview

Improper neutralization of special elements used in a command ('command injection') in Visual Studio Code allows an unauthorized attacker to execute code locally.

## Affected

- `visual_studio_code >= 1.0.0 < 1.128.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
