
Cloud Vulnerability DB
A community-led vulnerabilities database
Visual Studio Code was found to contain a Remote Code Execution (RCE) vulnerability, identified as CVE-2023-36742. The vulnerability affects VS Code versions 1.82.0 and earlier, with a CVSS score of 7.8 (HIGH). This security flaw was discovered and initially recorded on June 26, 2023, with Microsoft Corporation being the assigning CNA (CVE Details, Security Online).
The vulnerability occurs when working with a maliciously crafted package.json file. The flaw leverages VS Code's use of the locally installed npm command to fetch information about package dependencies. The exploitation involves manipulating package dependencies in a way that causes the npm tool to inadvertently execute scripts. The vulnerability received a CVSS v3.1 base score of 7.8 (HIGH) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD, Security Online).
If successfully exploited, this vulnerability allows attackers to execute arbitrary code on vulnerable systems. The attack scenario involves enticing a VS Code user to open a malicious project and interact with malformed entries in the dependencies sections of the package.json file (Security Online).
Microsoft has addressed this vulnerability in VS Code version 1.82.1 with fix e7b3397. The fix implements two key security measures: disabling npm usage in untrusted workspaces and adding enhanced input validation when executing the npm command. Users are strongly advised to update to VS Code version 1.82.1 or later and exercise caution when opening projects from untrusted sources (Security Online).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."