CVE-2023-30585
Node.js vulnerability analysis and mitigation

Overview

A vulnerability has been identified in the Node.js (.msi version) installation process, specifically affecting Windows users who install Node.js using the .msi installer. The vulnerability (CVE-2023-30585) was disclosed in June 2023 and affects all active Node.js versions (v16, v18, and v20). The issue emerges during the repair operation when the 'msiexec.exe' process runs under the NT AUTHORITY\SYSTEM context (Node Release).

Technical details

The vulnerability occurs when the 'msiexec.exe' process attempts to read the %USERPROFILE% environment variable from the current user's registry. When the path referenced by the %USERPROFILE% environment variable does not exist, the process attempts to create the specified path in an unsafe manner. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 HIGH with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N (NVD).

Impact

The vulnerability can lead to the creation of arbitrary folders in arbitrary locations on the affected system. Since the %USERPROFILE% environment variable in the Windows registry can be modified by standard (non-privileged) users, malicious entities or trojans can manipulate the environment variable key to deceive the privileged 'msiexec.exe' process. This manipulation enables the creation of folders in unintended and potentially malicious locations (Node Release).

Mitigation and workarounds

The vulnerability has been fixed in Node.js versions v16.20.1, v18.16.1, and v20.3.1. Users are advised to upgrade to these or later versions to address the security issue. The fix was implemented by Tobias Nießen after the vulnerability was reported by @sim0nsecurity (Node Release).

Additional resources


SourceThis report was generated using AI

Related Node.js vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-64756HIGH7.5
  • JavaScriptJavaScript
  • nodejs:22::nodejs-packaging-bundler
NoYesNov 17, 2025
CVE-2025-27210HIGH7.5
  • Node.jsNode.js
  • nodejs-24
NoYesJul 18, 2025
CVE-2025-7458MEDIUM6.9
  • SQLiteSQLite
  • firefox
NoYesJul 29, 2025
CVE-2025-62408MEDIUM5.9
  • npmnpm
  • c-ares
NoYesDec 08, 2025
CVE-2025-52099N/AN/A
  • SQLiteSQLite
  • rust-toolset:rhel8::rust-toolset
NoYesOct 24, 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