CVEfocus › CVE database › CVE-2023-30581

CVE-2023-30581

CVSS 7.5 HighEPSS 0.8% (higher than 56% of CVEs)Published 2023-11-22Updated 2025-11-03Assigner: hackerone

The use of __proto__ in process.mainModule.__proto__.require() can bypass the policy mechanism and require modules outside of the policy.json definition. This vulnerability affects all users using the experimental policy mechanism in all active release lines: v16, v18 and, v20. Please note that at the time this CVE was issued, the policy is an experimental feature of Node.js

CWE-862

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: 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

41Fixed
1Fix pending
3Will not fix
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 16.04nodejsFix pending
Debian 14nodejsFixed18.13.0+dfsg1-1.1DEBIAN-CVE-2023-30581
Debian 13nodejsFixed18.13.0+dfsg1-1.1DEBIAN-CVE-2023-30581
Debian 12nodejsFixed18.19.0+dfsg-6~deb12u1DEBIAN-CVE-2023-30581
Red Hat Enterprise Linux 9nodejsFixed1:16.20.1-1.el9_2RHSA-2023:4330
Red Hat Enterprise Linux 9nodejs-develFixed1:18.16.1-1.module+el9.2.0.z+19424+78951f07RHSA-2023:4330
Red Hat Enterprise Linux 9nodejs-docsFixed1:18.16.1-1.module+el9.2.0.z+19424+78951f07RHSA-2023:4331
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:16.20.1-1.el9_2RHSA-2023:4330
Red Hat Enterprise Linux 9nodejs-libsFixed1:16.20.1-1.el9_2RHSA-2023:4331
Red Hat Enterprise Linux 9nodejs-nodemonFixed0:2.0.20-2.module+el9.2.0.z+18497+a402347cRHSA-2023:4330
Red Hat Enterprise Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2023:4330
Red Hat Enterprise Linux 9nodejs-packaging-bundlerFixed0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2023:4330
Red Hat Enterprise Linux 9npmFixed1:8.19.4-1.16.20.1.1.el9_2RHSA-2023:4330
Red Hat Enterprise Linux 8nodejsFixed
Will not fix
1:16.20.1-1.module+el8.8.0+19440+ee8dbee5RHSA-2023:4536
Red Hat Enterprise Linux 8nodejs-develFixed
Will not fix
1:18.16.1-1.module+el8.8.0+19438+94e84959RHSA-2023:4537
Red Hat Enterprise Linux 8nodejs-docsFixed
Will not fix
1:16.20.1-1.module+el8.8.0+19440+ee8dbee5RHSA-2023:4536
Red Hat Enterprise Linux 8nodejs-full-i18nFixed
Will not fix
1:16.20.1-1.module+el8.8.0+19440+ee8dbee5RHSA-2023:4536
Red Hat Enterprise Linux 8nodejs-libsWill not fix
Will not fix
Red Hat Enterprise Linux 8nodejs-nodemonFixed
Will not fix
0:2.0.20-3.module+el8.8.0+19038+6f60344fRHSA-2023:4536
Red Hat Enterprise Linux 8nodejs-packagingFixed
Will not fix
0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:4537
Red Hat Enterprise Linux 8nodejs-packaging-bundlerFixed
Will not fix
0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:4536
Red Hat Enterprise Linux 8npmFixed
Will not fix
1:9.5.1-1.18.16.1.1.module+el8.8.0+19438+94e84959RHSA-2023:4537
Red Hat Enterprise Linux 8v8-12.4-develWill not fix
Will not fix
Red Hat Enterprise Linux 8v8-13.6-develWill not fix
Will not fix
AlmaLinux 9nodejsFixed1:16.20.1-1.el9_2ALSA-2023:4330
AlmaLinux 9nodejs-develFixed1:18.16.1-1.module_el9.2.0+31+cbae0c8eALSA-2023:4330
AlmaLinux 9nodejs-docsFixed1:18.16.1-1.module_el9.2.0+31+cbae0c8eALSA-2023:4331
AlmaLinux 9nodejs-full-i18nFixed1:16.20.1-1.el9_2ALSA-2023:4330
AlmaLinux 9nodejs-libsFixed1:16.20.1-1.el9_2ALSA-2023:4331
AlmaLinux 9nodejs-nodemonFixed2.0.20-2.module_el9.2.0+29+de583a0bALSA-2023:4330
AlmaLinux 9nodejs-packagingFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:4330
AlmaLinux 9nodejs-packaging-bundlerFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:4330
AlmaLinux 9npmFixed1:9.5.1-1.18.16.1.1.module_el9.2.0+31+cbae0c8eALSA-2023:4331
AlmaLinux 8nodejsFixed1:18.16.1-1.module_el8.8.0+3595+0818e803ALSA-2023:4537
AlmaLinux 8nodejs-develFixed1:16.20.1-1.module_el8.8.0+3594+e74fe53fALSA-2023:4536
AlmaLinux 8nodejs-docsFixed1:18.16.1-1.module_el8.8.0+3595+0818e803ALSA-2023:4537
AlmaLinux 8nodejs-full-i18nFixed1:16.20.1-1.module_el8.8.0+3594+e74fe53fALSA-2023:4536
AlmaLinux 8nodejs-nodemonFixed2.0.20-2.module_el8.8.0+3587+ee652244ALSA-2023:4537
AlmaLinux 8nodejs-packagingFixed25-1.module_el8.5.0+2605+45d748afALSA-2023:4536
AlmaLinux 8nodejs-packaging-bundlerFixed2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:4536
AlmaLinux 8npmFixed1:9.5.1-1.18.16.1.1.module_el8.8.0+3595+0818e803ALSA-2023:4537
Rocky Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.7.0+40022+9ecc286cRLSA-2023:4330
Rocky Linux 8nodejsFixed1:18.16.1-1.module+el8.8.0+1413+a47876c7RLSA-2023:4536
Rocky Linux 8nodejs-nodemonFixed0:2.0.20-2.module+el8.7.0+1177+510ae886RLSA-2023:4537
Rocky Linux 8nodejs-packagingFixed0:25-1.module+el8.7.0+1108+49363b0dRLSA-2023:4536

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.