Microsoft Visual Studio Code CVEs.
Published CVEs affecting Microsoft Visual Studio Code, ranked by exploit odds.
-
CVE-2022-41034
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2022-30129
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2019-0728
A remote code execution vulnerability exists in Visual Studio Code when it process environment variables after opening a project, aka 'Visual Studio Code Remote Code Execution Vulnerability'.
-
CVE-2021-43891
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2018-0597
Untrusted search path vulnerability in the installer of Visual Studio Code allows an attacker to gain privileges via a Trojan horse DLL in an unspecified directory.
-
CVE-2020-16881
<p>A remote code execution vulnerability exists in Visual Studio Code when a user is tricked into opening a malicious 'package.json' file. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the current user. If the current user is logged on with administrative user rights, an attacker could take control of the affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights.</p> <p>To exploit this vulnerability, an attacker would need to convince a target to clone a repository and open it in Visual Studio Code. Attacker-specified code would execute when the target opens the malicious 'package.json' file.</p> <p>The update address the vulnerability by modifying the way Visual Studio Code handles JSON files.</p>
-
CVE-2021-34529
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2020-17023
<p>A remote code execution vulnerability exists in Visual Studio Code when a user is tricked into opening a malicious 'package.json' file. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the current user. If the current user is logged on with administrative user rights, an attacker could take control of the affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights.</p> <p>To exploit this vulnerability, an attacker would need to convince a target to clone a repository and open it in Visual Studio Code. Attacker-specified code would execute when the target opens the malicious 'package.json' file.</p> <p>The update address the vulnerability by modifying the way Visual Studio Code handles JSON files.</p>
-
CVE-2021-28471
Remote Development Extension for Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2020-17148
Visual Studio Code Remote Development Extension Remote Code Execution Vulnerability
-
CVE-2020-17104
Visual Studio Code JSHint Extension Remote Code Execution Vulnerability
-
CVE-2020-0604
A remote code execution vulnerability exists in Visual Studio Code when it process environment variables after opening a project. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the current user. If the current user is logged on with administrative user rights, an attacker could take control of the affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. To exploit this vulnerability, an attacker would need to convince a target to clone a repository and open it in Visual Studio Code. Attacker-specified code would execute when the target opened the integrated terminal. The update address the vulnerability by modifying the way Visual Studio Code handles environment variables.
-
CVE-2021-34479
Microsoft Visual Studio Spoofing Vulnerability
-
CVE-2020-16977
<p>A remote code execution vulnerability exists in Visual Studio Code when the Python extension loads a Jupyter notebook file. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the current user. If the current user is logged on with administrative user rights, an attacker could take control of the affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights.</p> <p>To exploit this vulnerability, an attacker would need to convince a target to open a specially crafted file in Visual Studio Code with the Python extension installed.</p> <p>The update addresses the vulnerability by modifying the way Visual Studio Code Python extension renders notebook content.</p>
-
CVE-2021-27060
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2021-34528
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2021-31214
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2021-43908
Visual Studio Code Spoofing Vulnerability
-
CVE-2021-28457
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2021-28469
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2021-28473
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2021-28475
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2021-31211
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2022-41042
Visual Studio Code Information Disclosure Vulnerability
-
CVE-2023-21779
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2021-26437
Visual Studio Code Spoofing Vulnerability
-
CVE-2021-28477
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2022-21991
Visual Studio Code Remote Development Extension Remote Code Execution Vulnerability
-
CVE-2024-26165
Visual Studio Code Elevation of Privilege Vulnerability
-
CVE-2022-24526
Visual Studio Code Spoofing Vulnerability
-
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.
-
CVE-2023-33144
Visual Studio Code Spoofing Vulnerability
-
CVE-2024-43488
Missing authentication for critical function in Visual Studio Code extension for Arduino allows an unauthenticated attacker to perform remote code execution through network attack vector.
-
CVE-2023-24893
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2019-1414
An elevation of privilege vulnerability exists in Visual Studio Code when it exposes a debug listener to users of a local computer, aka 'Visual Studio Code Elevation of Privilege Vulnerability'.
-
CVE-2024-43601
Visual Studio Code for Linux Remote Code Execution Vulnerability
-
CVE-2022-38020
Visual Studio Code Elevation of Privilege Vulnerability
-
CVE-2026-78461
Improper limitation of a pathname to a restricted directory ('path traversal') in Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network.
-
CVE-2026-47284
Exposure of sensitive information to an unauthorized actor in Visual Studio Code allows an unauthorized attacker to disclose information over a network.
-
CVE-2023-36742
Visual Studio Code Remote Code Execution Vulnerability
-
CVE-2025-55319
Ai command injection in Agentic AI and Visual Studio Code allows an unauthorized attacker to execute code over a network.
-
CVE-2026-47285
Improper neutralization of special elements used in a command ('command injection') in Visual Studio Code allows an unauthorized attacker to disclose information over a network.
-
CVE-2026-81383
Use of incorrectly-resolved name or reference in Visual Studio Code allows an unauthorized attacker to disclose information over a network.
-
CVE-2026-81376
Incomplete comparison with missing factors in Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network.
-
CVE-2023-29338
Visual Studio Code Spoofing Vulnerability
-
CVE-2026-81381
Insufficiently protected credentials in GitHub Copilot and Visual Studio Code allows an unauthorized attacker to disclose information over a network.
-
CVE-2026-47282
Insufficiently protected credentials in GitHub Copilot and Visual Studio Code allows an unauthorized attacker to disclose information over a network.
-
CVE-2026-69320
Improper neutralization of special elements used in an os command ('os command injection') in Visual Studio Code allows an unauthorized attacker to execute code over a network.
-
CVE-2026-41109
Improper neutralization of special elements in output used by a downstream component ('injection') in GitHub Copilot and Visual Studio allows an unauthorized attacker to bypass a security feature over a network.
-
CVE-2026-47281
Missing authorization in Visual Studio Code allows an unauthorized attacker to elevate privileges over a network.
All CVEs affecting Microsoft Visual Studio Code that appear in CVE.org and NVD, sorted by how likely they are to be exploited (EPSS), with fix status and timeline.