What’s Vulnerable › Vulnerabilities
CVE-2026-21257: GitHub Copilot and Visual Studio Elevation of Privilege Vulnerability
- Severity: high (CVSS 8.0 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-02-10 · updated 2026-08-19
- Weakness: CWE-77
Description
Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio allows an authorized attacker to elevate privileges over a network.
Affected products
- Microsoft Visual Studio 2022 version 17.14: from 17.14.0 before 17.14.26 — fixed in 17.14.26
- Microsoft Visual Studio 2026 version 18.3: from 18.3.0 before 18.3.0 — fixed in 18.3.0
- Microsoft Visual Studio 2022 version 17.14: from 17.14.0 before 17.14.26 — fixed in 17.14.26
How to fix
Upgrade to a fixed version: Microsoft Visual Studio 2022 version 17.14 17.14.26; Microsoft Visual Studio 2026 version 18.3 18.3.0; Microsoft Visual Studio 2022 version 17.14 17.14.26. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-21257 or the next vulnerability affects your stack