Arbitrary Code Injection Affecting node package, versions [16.0.0,16.20.2)[18.0.0,18.17.1)[20.0.0,20.5.1)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.04% (10th 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 Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UPSTREAM-NODE-5848038
  • published22 Aug 2023
  • disclosed9 Aug 2023
  • creditLeoDog896

Introduced: 9 Aug 2023

CVE-2023-32559  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade node to version 16.20.2, 18.17.1, 20.5.1 or higher.

Overview

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

Affected versions of this package are vulnerable to Arbitrary Code Injection. The use of the deprecated API process.binding() can bypass the policy mechanism by requiring internal modules and eventually take advantage of process.binding('spawn_sync') to run arbitrary code, outside of the limits defined in a policy.json file.

Note:

At the time this advisory was issued, the policy is an experimental feature of Node.js, which is not enabled by default.

CVSS Base Scores

version 3.1