CVE-2023-36742
Visual Studio Code vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Visual Studio Code vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55319CRITICAL9.8
  • Visual Studio CodeVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesSep 12, 2025
CVE-2025-64660HIGH8
  • Visual Studio CodeVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesNov 20, 2025
CVE-2025-49714HIGH7.8
  • Visual Studio CodeVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesJul 08, 2025
CVE-2025-21264HIGH7.1
  • Visual Studio CodeVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesMay 13, 2025
CVE-2025-62453MEDIUM5
  • Visual Studio CodeVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesNov 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management