Privilege Escalation Affecting node package, versions [16.0.0,16.20.1)[18.0.0,18.16.1)[20.0.0,20.3.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.77% (86th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UPSTREAM-NODE-5756501
  • published6 Jul 2023
  • disclosed20 Jun 2023
  • credit@sim0nsecurity

Introduced: 20 Jun 2023

CVE-2023-30585  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade node to version 16.20.1, 18.16.1, 20.3.1 or higher.

Overview

node is a JavaScript runtime built on Chrome's V8 JavaScript engine.

Affected versions of this package are vulnerable to Privilege Escalation via Malicious Registry Key manipulation during Node.js installer repair process. The issue arises when the path referenced by the %USERPROFILE% environment variable does not exist. In such cases, the "msiexec.exe" process attempts to create the specified path in an unsafe manner, potentially leading to the creation of arbitrary folders in arbitrary locations.

Note:

This vulnerability is specific to Windows users who install Node.js using the .msi installer. Users who opt for other installation methods are not affected by this particular issue.

CVSS Base Scores

version 3.1