What’s Vulnerable › Vulnerabilities
CVE-2021-31214: Visual Studio Code Remote Code Execution Vulnerability
- Severity: critical (CVSS 9.3 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-05-11 · updated 2026-06-17
Description
Visual Studio Code Remote Code Execution Vulnerability
Affected products
- Microsoft Visual Studio Code: before 1.56.1 — fixed in 1.56.1
- Microsoft Visual Studio Code: from 1.0.0 before 1.56 — fixed in 1.56
How to fix
Upgrade to a fixed version: Microsoft Visual Studio Code 1.56.1; Microsoft Visual Studio Code 1.56. Check the vendor advisory for mitigations.
References
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31214
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31214
Get alerted when CVE-2021-31214 or the next vulnerability affects your stack