CVE-2026-21518
CVE-2026-21518 is a high-severity vulnerability in Microsoft Visual Studio Code with a CVSS 3.x base score of 8.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-77.
Key facts
- Severity: High (CVSS 3.x base score 8.8)
- EPSS exploit prediction: 1% (68th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-7359
- Weakness: CWE-77
- Affected product: Microsoft Visual Studio Code
- Published:
- Last modified:
Description
Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network.
Frequently asked questions
- What is CVE-2026-21518?
- Improper neutralization of special elements used in a command ('command injection') in GitHub Copilot and Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network.
- How severe is CVE-2026-21518?
- CVE-2026-21518 has a CVSS 3.x base score of 8.8, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2026-21518 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (68th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-21518?
- CVE-2026-21518 affects Microsoft Visual Studio Code. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-21518?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2026-21518 have an EU (EUVD) identifier?
- Yes. CVE-2026-21518 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-7359.
- When was CVE-2026-21518 published?
- CVE-2026-21518 was published on 2026-02-10 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:-:*:*
More vulnerabilities in Microsoft Visual Studio Code
- CVE-2026-47281 — Critical (CVSS 9.6): Improper input validation in Visual Studio Code allows an unauthorized attacker to elevate privileges over a network.
- CVE-2026-41613 — High (CVSS 8.8): Session fixation in Visual Studio Code allows an unauthorized attacker to elevate privileges over a network.
- CVE-2026-41109 — High (CVSS 8.8): Improper neutralization of special elements in output used by a downstream component ('injection') in GitHub Copilot…
- CVE-2025-55319 — High (CVSS 8.8): Ai command injection in Agentic AI and Visual Studio Code allows an unauthorized attacker to execute code over a…
- CVE-2024-43488 — High (CVSS 8.8): Missing authentication for critical function in Visual Studio Code extension for Arduino allows an unauthenticated…
- CVE-2024-26165 — High (CVSS 8.8): Visual Studio Code Elevation of Privilege Vulnerability
All CVEs affecting Microsoft Visual Studio Code →
Other CWE-77 (Command Injection) vulnerabilities
- CVE-2026-23652 — Critical (CVSS 10.0): Improper neutralization of special elements used in a command ('command injection') in Microsoft Power Pages allows an…
- CVE-2025-59818 — Critical (CVSS 10.0): This vulnerability allows authenticated attackers to execute arbitrary commands on the underlying system using the file…
- CVE-2025-64093 — Critical (CVSS 10.0): Remote Code Execution vulnerability that allows unauthenticated attackers to inject arbitrary commands into the…
- CVE-2025-64090 — Critical (CVSS 10.0): This vulnerability allows authenticated attackers to execute commands via the hostname of the device.
- CVE-2025-61492 — Critical (CVSS 10.0): A command injection vulnerability in the execute_command function of terminal-controller-mcp 0.1.7 allows attackers to…
- CVE-2025-10035 — Critical (CVSS 10.0): A deserialization vulnerability in the License Servlet of Fortra's GoAnywhere MFT allows an actor with a validly forged…