synced 4 MIN AGO
01 Record

CVE-2023-32006

The use of `module.constructor.createRequire()` can bypass the policy mechanism and require modules outside of the policy.json definition for a given module. This vulnerability affects all users using

HighPUBLISHEDCNA: hackerone
CNA base score8.8 CVSS v3.xCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

02 Description

The use of `module.constructor.createRequire()` can bypass the policy mechanism and require modules outside of the policy.json definition for a given module. This vulnerability affects all users using

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
  • Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
1.54% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 74.4% of scored records. A rank, not a probability.
NVD base score
8.8 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD analysis status
Modified. NVD last modified this record on 2026-06-17.
Red Hat severity
Important. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2023-08-15 15:10Z3 YR AGO
Last updated
2025-05-08 16:07Z1 YR AGO
Reserved
2023-05-01
Assigning CNA
hackerone
Record state
PUBLISHED
Severity
High (CVSS 8.8)
CNA CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
  • CWE-693Protection Mechanism FailurePillar
  • CWE-213Exposure of Sensitive Information Due to Incompatible PoliciesBase
Data version
5.1
Document digest
23e3262e6e72dba7939bea488804e6ba757798a140eee7806ea4eca082f55e5c

05 Affected products

VendorProductVersionsPlatforms
NodeJSNode4.0 to < 4.*, 5.0 to < 5.*, 6.0 to < 6.*, 7.0 to < 7.*, 8.0 to < 8.*, 9.0 to < 9.*, 10.0 to < 10.*, 11.0 to < 11.*, 12.0 to < 12.*, 13.0 to < 13.*, 14.0 to < 14.*, 15.0 to < 15.*, 16.0 to < 16.20.2, 17.0 to < 17.*, 18.0 to < 18.17.1, 19.0 to < 19.*, 20.0 to < 20.5.1—

06 References

07 Fixed in

AlmaLinux 8

  • nodejs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-2.module_el8.8.0+3614+204d6f43
    • Affected before 1:18.17.1-1.module_el8.8.0+3613+1ed8c91d
  • nodejs-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-2.module_el8.8.0+3614+204d6f43
    • Affected before 1:18.17.1-1.module_el8.8.0+3613+1ed8c91d
  • nodejs-docs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-2.module_el8.8.0+3614+204d6f43
    • Affected before 1:18.17.1-1.module_el8.8.0+3613+1ed8c91d
  • nodejs-full-i18n
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-2.module_el8.8.0+3614+204d6f43
    • Affected before 1:18.17.1-1.module_el8.8.0+3613+1ed8c91d
  • nodejs-nodemon
    Fixed

    A version is affected if any line below covers it.

    • Affected before 3.0.1-1.module_el8.8.0+3613+1ed8c91d
    • Affected before 3.0.1-1.module_el8.8.0+3614+204d6f43
  • nodejs-packaging
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2021.06-4.module_el8.7.0+3343+ea2b7901
    • Affected before 26-1.module_el8.8.0+3614+204d6f43
  • nodejs-packaging-bundler
    Fixed in 2021.06-4.module_el8.7.0+3343+ea2b7901
  • npm
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:8.19.4-1.16.20.2.2.module_el8.8.0+3614+204d6f43
    • Affected before 1:9.6.7-1.18.17.1.1.module_el8.8.0+3613+1ed8c91d

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

AlmaLinux 9

  • nodejs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-1.el9_2
    • Affected before 1:18.17.1-1.module_el9.2.0+36+853e48f5
  • nodejs-devel
    Fixed in 1:18.17.1-1.module_el9.2.0+36+853e48f5
  • nodejs-docs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-1.el9_2
    • Affected before 1:18.17.1-1.module_el9.2.0+36+853e48f5
  • nodejs-full-i18n
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-1.el9_2
    • Affected before 1:18.17.1-1.module_el9.2.0+36+853e48f5
  • nodejs-libs
    Fixed in 1:16.20.2-1.el9_2
  • nodejs-nodemon
    Fixed in 3.0.1-1.module_el9.2.0+36+853e48f5
  • nodejs-packaging
    Fixed in 2021.06-4.module_el9.1.0+13+d9a595ea
  • nodejs-packaging-bundler
    Fixed in 2021.06-4.module_el9.1.0+13+d9a595ea
  • npm
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:8.19.4-1.16.20.2.1.el9_2
    • Affected before 1:9.6.7-1.18.17.1.1.module_el9.2.0+36+853e48f5

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 8

  • nodejs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-2.module_el8.8.0+3614+204d6f43
    • Affected before 1:18.17.1-1.module_el8.8.0+3613+1ed8c91d
  • nodejs-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-2.module_el8.8.0+3614+204d6f43
    • Affected before 1:18.17.1-1.module_el8.8.0+3613+1ed8c91d
  • nodejs-docs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-2.module_el8.8.0+3614+204d6f43
    • Affected before 1:18.17.1-1.module_el8.8.0+3613+1ed8c91d
  • nodejs-full-i18n
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-2.module_el8.8.0+3614+204d6f43
    • Affected before 1:18.17.1-1.module_el8.8.0+3613+1ed8c91d
  • nodejs-nodemon
    Fixed

    A version is affected if any line below covers it.

    • Affected before 3.0.1-1.module_el8.8.0+3613+1ed8c91d
    • Affected before 3.0.1-1.module_el8.8.0+3614+204d6f43
  • nodejs-packaging
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2021.06-4.module_el8.7.0+3343+ea2b7901
    • Affected before 26-1.module_el8.8.0+3614+204d6f43
  • nodejs-packaging-bundler
    Fixed in 2021.06-4.module_el8.7.0+3343+ea2b7901
  • npm
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:8.19.4-1.16.20.2.2.module_el8.8.0+3614+204d6f43
    • Affected before 1:9.6.7-1.18.17.1.1.module_el8.8.0+3613+1ed8c91d

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 9

  • nodejs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-1.el9_2
    • Affected before 1:18.17.1-1.module_el9.2.0+36+853e48f5
  • nodejs-devel
    Fixed in 1:18.17.1-1.module_el9.2.0+36+853e48f5
  • nodejs-docs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-1.el9_2
    • Affected before 1:18.17.1-1.module_el9.2.0+36+853e48f5
  • nodejs-full-i18n
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.20.2-1.el9_2
    • Affected before 1:18.17.1-1.module_el9.2.0+36+853e48f5
  • nodejs-libs
    Fixed in 1:16.20.2-1.el9_2
  • nodejs-nodemon
    Fixed in 3.0.1-1.module_el9.2.0+36+853e48f5
  • nodejs-packaging
    Fixed in 2021.06-4.module_el9.1.0+13+d9a595ea
  • nodejs-packaging-bundler
    Fixed in 2021.06-4.module_el9.1.0+13+d9a595ea
  • npm
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:8.19.4-1.16.20.2.1.el9_2
    • Affected before 1:9.6.7-1.18.17.1.1.module_el9.2.0+36+853e48f5

Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Debian 12

  • nodejs
    Fixed in 18.19.0+dfsg-6~deb12u1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • nodejs
    Fixed in 18.13.0+dfsg1-1.1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • nodejs
    Fixed in 18.13.0+dfsg1-1.1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 22.04 LTS

  • nodejs
    Fixed in 12.22.9~dfsg-1ubuntu3.6

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.