CVE-2026-50520: Visual Studio Code Remote Code Execution Vulnerability
CVE-2026-50520 is a remote code execution vulnerability in Visual Studio Code, rated Important by Microsoft, with a CVSS 3.1 base score of 8.4 (High). An attacker can exploit it by an attacker with local access, without any privileges and without user interaction. Microsoft has not reported exploitation in the wild and rates exploitation as less likely. The EPSS model estimates a 0.32% probability of exploitation activity in the next 30 days, higher than 27% of all scored vulnerabilities. Microsoft released the fix on 14 July 2026 in the July 2026 Patch Tuesday. It affects 1 product in 1 product family (Developer Tools).
Key facts
- CVE ID
- CVE-2026-50520
- Severity
- High CVSS 8.4
- Microsoft severity
- Important
- Impact
- Remote Code Execution
- Exploited in the wild
- No
- Publicly disclosed
- No
- Exploitation likelihood
- Less Likely
- Weakness
- CWE-77
- EPSS
- 0.32% (percentile 27%)
- CISA KEV
- Not listed
- Released
- Last updated
- Patch Tuesday
- July 2026 Patch Tuesday
- Product families
- Developer Tools
CVSS score and vector
Microsoft scores CVE-2026-50520 at 8.4 (temporal 7.3) using CVSS 3.1. 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
| Metric | Value |
|---|---|
| Attack vector | Local |
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality impact | High |
| Integrity impact | High |
| Availability impact | High |
| Exploit code maturity | Unproven |
| Remediation level | Official fix |
| Report confidence | Confirmed |
Description
Improper neutralization of special elements used in a command ('command injection') in Visual Studio Code allows an unauthorized attacker to execute code locally.
Frequently asked questions (Microsoft)
According to the CVSS metric, the attack vector is local (AV:L). Why does the CVE title indicate that this is a remote code execution?
The word Remote in the title refers to the location of the attacker. This type of exploit is sometimes referred to as Arbitrary Code Execution (ACE). The attack itself is carried out locally. This means an attacker or victim needs to execute code from the local machine to exploit the vulnerability.
Affected products (1)
Developer Tools
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| Visual Studio Code | Release Notes | Security Update | 1.128.1 | Maybe |
NIST NVD data
- NVD status
- Analyzed
- NVD CVSS
- 8.4 (HIGH)
- NVD weakness
- CWE-77
- Published to NVD
- NVD last modified
Affected configurations (CPE)
| Product | Vulnerable versions |
|---|---|
| visual studio code | from 1.0.0, before 1.128.1 |
References
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-50520 (Patch, Vendor Advisory, Product)
Acknowledgments
- Daniel Santos with Microsoft
Revision history
| Version | Date | Description |
|---|---|---|
| 1.0 | Information published. |