What’s Vulnerable › Vulnerabilities
CVE-2021-42322: Visual Studio Code Elevation of Privilege Vulnerability
- Severity: medium (CVSS 4.6 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-11-10 · updated 2026-08-19
- Weakness: CWE-269
Description
Visual Studio Code Elevation of Privilege Vulnerability
Affected products
- Microsoft Visual Studio Code: before 1.16.2 — fixed in 1.16.2
- Microsoft Visual Studio Code: from 1.0.0 before 1.62.1 — fixed in 1.62.1
How to fix
Upgrade to a fixed version: Microsoft Visual Studio Code 1.16.2; Microsoft Visual Studio Code 1.62.1. Check the vendor advisory for mitigations.
References
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-42322
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-42322
Get alerted when CVE-2021-42322 or the next vulnerability affects your stack