CVEfocus › CVE database › CVE-2023-32006

CVE-2023-32006

CVSS 8.8 HighEPSS 1.6% (higher than 76% of CVEs)Published 2023-08-15Updated 2025-05-08Assigner: hackerone

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 the experimental policy mechanism in all active release lines: 16.x, 18.x, and, 20.x. Please note that at the time this CVE was issued, the policy is an experimental feature of Node.js.

CWE-693

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

53Fixed
1Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 22.04nodejsFixed12.22.9~dfsg-1ubuntu3.6UBUNTU-CVE-2023-32006
Ubuntu 16.04nodejsFix pending
Debian 14nodejsFixed18.13.0+dfsg1-1.1DEBIAN-CVE-2023-32006
Debian 13nodejsFixed18.13.0+dfsg1-1.1DEBIAN-CVE-2023-32006
Debian 12nodejsFixed18.19.0+dfsg-6~deb12u1DEBIAN-CVE-2023-32006
Red Hat Enterprise Linux 9nodejsFixed1:18.17.1-1.module+el9.2.0.z+19753+58118bc0RHSA-2023:5532
Red Hat Enterprise Linux 9nodejs-develFixed1:18.17.1-1.module+el9.2.0.z+19753+58118bc0RHSA-2023:5363
Red Hat Enterprise Linux 9nodejs-docsFixed1:16.20.2-1.el9_2RHSA-2023:5363
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:16.20.2-1.el9_2RHSA-2023:5363
Red Hat Enterprise Linux 9nodejs-libsFixed1:16.20.2-1.el9_2RHSA-2023:5532
Red Hat Enterprise Linux 9nodejs-nodemonFixed0:3.0.1-1.module+el9.2.0.z+19753+58118bc0RHSA-2023:5363
Red Hat Enterprise Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2023:5363
Red Hat Enterprise Linux 9nodejs-packaging-bundlerFixed0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2023:5363
Red Hat Enterprise Linux 9npmFixed1:8.19.4-1.16.20.2.1.el9_2RHSA-2023:5363
Red Hat Enterprise Linux 8nodejsFixed1:18.17.1-1.module+el8.8.0+19757+8ca87034RHSA-2023:5360
Red Hat Enterprise Linux 8nodejs-develFixed1:18.17.1-1.module+el8.8.0+19757+8ca87034RHSA-2023:5360
Red Hat Enterprise Linux 8nodejs-docsFixed1:18.17.1-1.module+el8.8.0+19757+8ca87034RHSA-2023:5360
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:18.17.1-1.module+el8.8.0+19757+8ca87034RHSA-2023:5360
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:3.0.1-1.module+el8.8.0+19757+8ca87034RHSA-2023:5360
Red Hat Enterprise Linux 8nodejs-packagingFixed0:26-1.module+el8.8.0+19857+6d2a104dRHSA-2023:5362
Red Hat Enterprise Linux 8nodejs-packaging-bundlerFixed0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:5362
Red Hat Enterprise Linux 8npmFixed1:8.19.4-1.16.20.2.2.module+el8.8.0+19898+ab99ba34RHSA-2023:5362
AlmaLinux 9nodejsFixed1:18.17.1-1.module_el9.2.0+36+853e48f5ALSA-2023:5532
AlmaLinux 9nodejs-develFixed1:18.17.1-1.module_el9.2.0+36+853e48f5ALSA-2023:5363
AlmaLinux 9nodejs-docsFixed1:16.20.2-1.el9_2ALSA-2023:5363
AlmaLinux 9nodejs-full-i18nFixed1:18.17.1-1.module_el9.2.0+36+853e48f5ALSA-2023:5532
AlmaLinux 9nodejs-libsFixed1:16.20.2-1.el9_2ALSA-2023:5532
AlmaLinux 9nodejs-nodemonFixed3.0.1-1.module_el9.2.0+36+853e48f5ALSA-2023:5363
AlmaLinux 9nodejs-packagingFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:5363
AlmaLinux 9nodejs-packaging-bundlerFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:5363
AlmaLinux 9npmFixed1:8.19.4-1.16.20.2.1.el9_2ALSA-2023:5363
AlmaLinux 8nodejsFixed1:18.17.1-1.module_el8.8.0+3613+1ed8c91dALSA-2023:5360
AlmaLinux 8nodejs-develFixed1:18.17.1-1.module_el8.8.0+3613+1ed8c91dALSA-2023:5360
AlmaLinux 8nodejs-docsFixed1:16.20.2-2.module_el8.8.0+3614+204d6f43ALSA-2023:5362
AlmaLinux 8nodejs-full-i18nFixed1:18.17.1-1.module_el8.8.0+3613+1ed8c91dALSA-2023:5360
AlmaLinux 8nodejs-nodemonFixed3.0.1-1.module_el8.8.0+3613+1ed8c91dALSA-2023:5360
AlmaLinux 8nodejs-packagingFixed26-1.module_el8.8.0+3614+204d6f43ALSA-2023:5362
AlmaLinux 8nodejs-packaging-bundlerFixed2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:5362
AlmaLinux 8npmFixed1:8.19.4-1.16.20.2.2.module_el8.8.0+3614+204d6f43ALSA-2023:5362
Rocky Linux 9nodejsFixed1:16.20.2-1.el9_2RLSA-2023:5532
Rocky Linux 9nodejs-nodemonFixed0:3.0.1-1.module+el9.6.0+32185+bd121a25RLSA-2023:5363
Rocky Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.6.0+32048+5323bb50RLSA-2023:5363
Rocky Linux 8nodejs-nodemonFixed0:3.0.1-1.module+el8.10.0+1667+4a788d89RLSA-2023:5362
Rocky Linux 8nodejs-packagingFixed0:2021.06-4.module+el8.10.0+1823+b5789597RLSA-2023:5362
Alpine Linux 3.24nodejsFixed18.17.1-r0ALPINE-CVE-2023-32006
Alpine Linux 3.23nodejsFixed18.17.1-r0ALPINE-CVE-2023-32006
Alpine Linux 3.22nodejsFixed18.17.1-r0ALPINE-CVE-2023-32006
Alpine Linux 3.21nodejsFixed18.17.1-r0ALPINE-CVE-2023-32006
Alpine Linux 3.20nodejsFixed18.17.1-r0ALPINE-CVE-2023-32006
Alpine Linux 3.19nodejsFixed18.17.1-r0ALPINE-CVE-2023-32006
Alpine Linux 3.18nodejsFixed18.17.1-r0ALPINE-CVE-2023-32006
Alpine Linux 3.17nodejsFixed18.17.1-r0ALPINE-CVE-2023-32006
Alpine Linux 3.16nodejsFixed16.20.2-r0ALPINE-CVE-2023-32006
Alpine Linux 3.15nodejsFixed16.20.2-r0ALPINE-CVE-2023-32006

What the vendor says

As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.