Skip to content
OpenAdvisories
Critical · 9.8 CVE-2023-32002 EUVD-2023-36290GHSA-9m48-r3w4-x35v

The use of `Module._load()` can bypass the policy mechanism and require modules outside of the policy.json definition for a given module. T…

Published Aug 21, 2023 · Updated Jul 2, 2025 · Assigned by hackerone

Description

The use of `Module._load()` 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.

Affected products

VendorProductAffectedFixed
NodeJS Node 4.0 – < 4.*, 5.0 – < 5.*, 6.0 – < 6.*, 7.0 – < 7.*, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.*, 11.0 – < 11.*, 12.0 – < 12.*, 13.0 – < 13.*, 14.0 – < 14.*, 15.0 – < 15.*, 16.0 – < 16.20.2, 17.0 – < 17.*, 18.0 – < 18.17.1, 19.0 – < 19.*, 20.0 – < 20.5.1 4.*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nodejs 18.13.0+dfsg1-1.1 —
Debian 13 nodejs 18.13.0+dfsg1-1.1 —
Debian 12 nodejs 18.19.0+dfsg-6~deb12u1 DSA-5589-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS nodejs 12.22.9~dfsg-1ubuntu3.6 USN-6822-1
ReleasePackageFixed inAdvisory
RHEL 9 nodejs +3 1:16.20.2-1.el9_2 RHSA-2023:5532, RHSA-2023:5363
RHEL 9 nodejs-devel 1:18.17.1-1.module+el9.2.0.z+19753+58118bc0 RHSA-2023:5363
RHEL 9 nodejs-nodemon 3.0.1-1.module+el9.2.0.z+19753+58118bc0 RHSA-2023:5363
RHEL 9 nodejs-packaging +1 2021.06-4.module+el9.1.0+15718+e52ec601 RHSA-2023:5363
RHEL 9 npm 1:8.19.4-1.16.20.2.1.el9_2 RHSA-2023:5532, RHSA-2023:5363
RHEL 8 nodejs +3 1:16.20.2-2.module+el8.8.0+19898+ab99ba34 RHSA-2023:5362, RHSA-2023:5360
RHEL 8 nodejs-nodemon 3.0.1-1.module+el8.8.0+19757+8ca87034 RHSA-2023:5362, RHSA-2023:5360
RHEL 8 nodejs-packaging 26-1.module+el8.8.0+19857+6d2a104d RHSA-2023:5362, RHSA-2023:5360
RHEL 8 nodejs-packaging-bundler 2021.06-4.module+el8.7.0+15582+19c314fa RHSA-2023:5362
RHEL 8 npm 1:8.19.4-1.16.20.2.2.module+el8.8.0+19898+ab99ba34 RHSA-2023:5362, RHSA-2023:5360
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.0 EUS nodejs +3 1:16.20.2-1.el9_0 RHSA-2023:5533
RHEL 9.0 EUS npm 1:8.19.4-1.16.20.2.1.el9_0 RHSA-2023:5533
RHEL 8.6 EUS nodejs +3 1:16.20.2-2.module+el8.6.0+19897+9590a839 RHSA-2023:5361
RHEL 8.6 EUS nodejs-nodemon 3.0.1-1.module+el8.6.0+19765+366b9144 RHSA-2023:5361
RHEL 8.6 EUS nodejs-packaging 26-1.module+el8.6.0+19856+c0c87259 RHSA-2023:5361
RHEL 8.6 EUS npm 1:8.19.4-1.16.20.2.2.module+el8.6.0+19897+9590a839 RHSA-2023:5361

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 nodejs +3 1:16.20.2-1.el9_2 ALSA-2023:5532, ALSA-2023:5363
AlmaLinux 9 nodejs-devel 1:18.17.1-1.module_el9.2.0+36+853e48f5 ALSA-2023:5363
AlmaLinux 9 nodejs-nodemon 3.0.1-1.module_el9.2.0+36+853e48f5 ALSA-2023:5363
AlmaLinux 9 nodejs-packaging +1 2021.06-4.module_el9.1.0+13+d9a595ea ALSA-2023:5363
AlmaLinux 9 npm 1:8.19.4-1.16.20.2.1.el9_2 ALSA-2023:5532, ALSA-2023:5363
AlmaLinux 8 nodejs +3 1:16.20.2-2.module_el8.8.0+3614+204d6f43 ALSA-2023:5362, ALSA-2023:5360
AlmaLinux 8 nodejs-nodemon 3.0.1-1.module_el8.8.0+3613+1ed8c91d ALSA-2023:5362, ALSA-2023:5360
AlmaLinux 8 nodejs-packaging 26-1.module_el8.8.0+3614+204d6f43 ALSA-2023:5362, ALSA-2023:5360
AlmaLinux 8 nodejs-packaging-bundler 2021.06-4.module_el8.7.0+3343+ea2b7901 ALSA-2023:5362
AlmaLinux 8 npm 1:8.19.4-1.16.20.2.2.module_el8.8.0+3614+204d6f43 ALSA-2023:5362, ALSA-2023:5360

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 nodejs 1:16.20.2-1.el9_2 RLSA-2023:5532
Rocky Linux 9 nodejs-nodemon 3.0.1-1.module+el9.5.0+31770+0da7192d RLSA-2023:5363
Rocky Linux 9 nodejs-packaging 2021.06-4.module+el9.5.0+31770+0da7192d RLSA-2023:5363
Rocky Linux 8 nodejs-nodemon 3.0.1-1.module+el8.9.0+1760+903d54b9 RLSA-2023:5362, RLSA-2023:5360
Rocky Linux 8 nodejs-packaging 26-1.module+el8.9.0+1760+903d54b9 RLSA-2023:5362, RLSA-2023:5360
ReleasePackageFixed inAdvisory
SLES 15 SP5 nodejs18 18.17.1-150400.9.12.1 SUSE-SU-2023:3378-1
SLES 15 SP4 nodejs16 16.20.2-150400.3.24.1 SUSE-SU-2023:3379-1
SLES 15 SP4 nodejs18 18.17.1-150400.9.12.1 SUSE-SU-2023:3378-1
SLES 15 SP3 nodejs12 12.22.12-150200.4.50.1 SUSE-SU-2023:3455-1
SLES 15 SP3 nodejs14 14.21.3-150200.15.49.1 SUSE-SU-2023:3408-1
SLES 15 SP3 nodejs16 16.20.2-150300.7.27.2 SUSE-SU-2023:3400-1
SLES 15 SP2 nodejs12 12.22.12-150200.4.50.1 SUSE-SU-2023:3455-1
SLES 15 SP2 nodejs14 14.21.3-150200.15.49.1 SUSE-SU-2023:3408-1
SLES 12 nodejs14 14.21.3-6.46.1 SUSE-SU-2023:3306-1
SLES 12 nodejs16 16.20.2-8.33.1 SUSE-SU-2023:3355-1
SLES 12 nodejs18 18.17.1-8.12.1 SUSE-SU-2023:3356-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 nodejs12 12.22.12-150200.4.50.1 SUSE-SU-2023:3455-1
SLES for SAP 15 SP3 nodejs14 14.21.3-150200.15.49.1 SUSE-SU-2023:3408-1
SLES for SAP 15 SP3 nodejs16 16.20.2-150300.7.27.2 SUSE-SU-2023:3400-1
SLES for SAP 15 SP2 nodejs12 12.22.12-150200.4.50.1 SUSE-SU-2023:3455-1
SLES for SAP 15 SP2 nodejs14 14.21.3-150200.15.49.1 SUSE-SU-2023:3408-1
SLE HPC 15 SP3 nodejs12 12.22.12-150200.4.50.1 SUSE-SU-2023:3455-1
SLE HPC 15 SP3 nodejs14 14.21.3-150200.15.49.1 SUSE-SU-2023:3408-1
SLE HPC 15 SP3 nodejs16 16.20.2-150300.7.27.2 SUSE-SU-2023:3400-1
SLE HPC 15 SP2 nodejs12 12.22.12-150200.4.50.1 SUSE-SU-2023:3455-1
SLE HPC 15 SP2 nodejs14 14.21.3-150200.15.49.1 SUSE-SU-2023:3408-1
SUSE Manager Server 4.2 nodejs12 12.22.12-150200.4.50.1 SUSE-SU-2023:3455-1
SUSE Manager Server 4.2 nodejs14 14.21.3-150200.15.49.1 SUSE-SU-2023:3408-1
SUSE Manager Server 4.2 nodejs16 16.20.2-150300.7.27.2 SUSE-SU-2023:3400-1
SUSE Enterprise Storage 7.1 nodejs12 12.22.12-150200.4.50.1 SUSE-SU-2023:3455-1
SUSE Enterprise Storage 7.1 nodejs14 14.21.3-150200.15.49.1 SUSE-SU-2023:3408-1
SUSE Enterprise Storage 7.1 nodejs16 16.20.2-150300.7.27.2 SUSE-SU-2023:3400-1
SUSE Enterprise Storage 7 nodejs12 12.22.12-150200.4.50.1 SUSE-SU-2023:3455-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs20 20.5.1-1.1 openSUSE-SU-2024:13117-1
openSUSE Leap 15.5 nodejs18 18.17.1-150400.9.12.1 SUSE-SU-2023:3378-1
openSUSE Leap 15.4 nodejs12 12.22.12-150200.4.50.1 SUSE-SU-2023:3455-1
openSUSE Leap 15.4 nodejs14 14.21.3-150200.15.49.1 SUSE-SU-2023:3408-1
openSUSE Leap 15.4 nodejs16 16.20.2-150400.3.24.1 SUSE-SU-2023:3379-1
openSUSE Leap 15.4 nodejs18 18.17.1-150400.9.12.1 SUSE-SU-2023:3378-1
ReleasePackageFixed inAdvisory
Alpine v3.24 nodejs 18.17.1-r0 —
Alpine v3.23 nodejs 18.17.1-r0 —
Alpine v3.22 nodejs 18.17.1-r0 —
Alpine v3.21 nodejs 18.17.1-r0 —
Alpine v3.20 nodejs 18.17.1-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 nodejs 18.17.1-r0 —
Alpine v3.18 nodejs 18.17.1-r0 —
Alpine v3.17 nodejs 18.17.1-r0 —
Alpine v3.16 nodejs 16.20.2-r0 —
Alpine v3.15 nodejs 16.20.2-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nodejs +4 1:18.12.1-1.amzn2023.0.10 ALAS2023-2023-304
Amazon Linux 2023 npm 1:8.19.2-1.18.12.1.1.amzn2023.0.10 ALAS2023-2023-304
Amazon Linux 2023 v8-devel 2:10.2.154.15-1.18.12.1.1.amzn2023.0.10 ALAS2023-2023-304

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) nodejs 16.20.2-2 —
Azure Linux 2 (CBL-Mariner) nodejs18 18.17.1-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 nodejs +3 1:16.20.2-1.el9_2 ELSA-2023-5532, ELSA-2023-5363
Oracle Linux 9 nodejs-devel 1:18.17.1-1.module+el9.2.0+21169+1d24b6cc ELSA-2023-5363
Oracle Linux 9 nodejs-nodemon 3.0.1-1.module+el9.2.0+21169+1d24b6cc ELSA-2023-5363
Oracle Linux 9 nodejs-packaging +1 2021.06-4.module+el9.1.0+20762+f52d7401 ELSA-2023-5363
Oracle Linux 9 npm 1:8.19.4-1.16.20.2.1.el9_2 ELSA-2023-5532, ELSA-2023-5363
Oracle Linux 8 nodejs +3 1:16.20.2-2.module+el8.8.0+21172+0baa0bae ELSA-2023-5362, ELSA-2023-5360
Oracle Linux 8 nodejs-nodemon 3.0.1-1.module+el8.8.0+21170+2efec6d4 ELSA-2023-5362, ELSA-2023-5360
Oracle Linux 8 nodejs-packaging 26-1.module+el8.8.0+21172+0baa0bae ELSA-2023-5362, ELSA-2023-5360
Oracle Linux 8 nodejs-packaging-bundler 2021.06-4.module+el8.7.0+20766+0a247725 ELSA-2023-5362
Oracle Linux 8 npm 1:8.19.4-1.16.20.2.2.module+el8.8.0+21172+0baa0bae ELSA-2023-5362, ELSA-2023-5360

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling nodejs-16 16.20.2-r0 —
Wolfi rolling nodejs-18 18.17.1-r0 —
Wolfi rolling nodejs-20 20.5.1-r0 —

Advisories 40

References