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)


0.0
high

Snyk CVSS

    Attack Complexity High
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    EPSS 0.05% (18th percentile)
Expand this section
NVD
7.5 high
Expand this section
SUSE
5.6 medium
Expand this section
Red Hat
7.5 high

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 ID SNYK-UPSTREAM-NODE-5848038
  • published 22 Aug 2023
  • disclosed 9 Aug 2023
  • credit LeoDog896

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.