cve.bz

CVE-2023-30581 nodejs node.js: Missing Authorization

7.5 highEPSS 1.1%

High (7.5) in nodejs node.js. EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
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

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-06-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-862 Missing Authorization
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-30581 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-30581?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-30581?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-30581 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
NodeJS Nodefrom 4.0 before 4.*
NodeJS Nodefrom 5.0 before 5.*
NodeJS Nodefrom 6.0 before 6.*
NodeJS Nodefrom 7.0 before 7.*
NodeJS Nodefrom 8.0 before 8.*
NodeJS Nodefrom 9.0 before 9.*
NodeJS Nodefrom 10.0 before 10.*
NodeJS Nodefrom 11.0 before 11.*
NodeJS Nodefrom 12.0 before 12.*
NodeJS Nodefrom 13.0 before 13.*
NodeJS Nodefrom 14.0 before 14.*
NodeJS Nodefrom 15.0 before 15.*
NodeJS Nodefrom 16.0 before 16.20.1
NodeJS Nodefrom 17.0 before 17.*
NodeJS Nodefrom 18.0 before 18.16.1
NodeJS Nodefrom 19.0 before 19.*
NodeJS Nodefrom 20.0 before 20.3.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12nodejs18.19.0+dfsg-6~deb12u1DEBIAN-CVE-2023-30581 DSA-5589-1
Debian13, 14nodejs18.13.0+dfsg1-1.1DEBIAN-CVE-2023-30581
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:16.20.1-1.module+el8.8.0+19440+ee8dbee5RHSA-2023:4537
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.16.1-1.module+el8.8.0+19438+94e84959RHSA-2023:4536
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-2.module+el8.8.0+18432+27f188acRHSA-2023:4536
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-3.module+el8.8.0+19038+6f60344fRHSA-2023:4537
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2023:4537
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:4536
Red Hatenterprise_linux:8::appstreamnpm1:8.19.4-1.16.20.1.1.module+el8.8.0+19440+ee8dbee5RHSA-2023:4537
Red Hatenterprise_linux:8::appstreamnpm1:9.5.1-1.18.16.1.1.module+el8.8.0+19438+94e84959RHSA-2023:4536
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.16.1-1.module+el9.2.0.z+19424+78951f07RHSA-2023:4330
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 4 more1:16.20.1-1.el9_2RHSA-2023:4331
Red Hatenterprise_linux:9::appstreamnodejs-nodemon0:2.0.20-2.module+el9.2.0.z+18497+a402347cRHSA-2023:4330
Red Hatenterprise_linux:9::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2023:4330
8 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morenodejs1212.22.12-150200.4.50.1SUSE-SU-2023:3455-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 6 morenodejs1414.21.3-150200.15.49.1SUSE-SU-2023:3408-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 3 morenodejs1616.20.1-150300.7.24.2SUSE-SU-2023:2861-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1414.21.3-6.46.1SUSE-SU-2023:3306-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1616.20.1-8.30.1SUSE-SU-2023:2655-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1818.16.1-8.9.1SUSE-SU-2023:2662-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1616.20.1-150400.3.21.1SUSE-SU-2023:2663-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4, Linux Enterprise Module for Web and Scripting 15 SP5nodejs1818.16.1-150400.9.9.1SUSE-SU-2023:2669-1
openSUSELeap 15.4nodejs1212.22.12-150200.4.50.1SUSE-SU-2023:3455-1
openSUSELeap 15.4nodejs1414.21.3-150200.15.49.1SUSE-SU-2023:3408-1
openSUSELeap 15.4nodejs1616.20.1-150400.3.21.1SUSE-SU-2023:2663-1
openSUSELeap 15.4, Leap 15.5nodejs1818.16.1-150400.9.9.1SUSE-SU-2023:2669-1
openSUSETumbleweednodejs2020.3.1-1.1openSUSE-SU-2024:13021-1
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:16.20.1-1.module_el8.8.0+3594+e74fe53fALSA-2023:4537
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:18.16.1-1.module_el8.8.0+3595+0818e803ALSA-2023:4536
AlmaLinux8nodejs-nodemon2.0.20-2.module_el8.8.0+3587+ee652244ALSA-2023:4536
AlmaLinux8nodejs-nodemon2.0.20-3.module_el8.8.0+3586+d4fc0b72ALSA-2023:4537
AlmaLinux8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2023:4537
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:4536
AlmaLinux8npm1:8.19.4-1.16.20.1.1.module_el8.8.0+3594+e74fe53fALSA-2023:4537
AlmaLinux8npm1:9.5.1-1.18.16.1.1.module_el8.8.0+3595+0818e803ALSA-2023:4536
AlmaLinux9nodejs, nodejs-docs, nodejs-devel and 1 more1:18.16.1-1.module_el9.2.0+31+cbae0c8eALSA-2023:4330
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 1 more1:16.20.1-1.el9_2ALSA-2023:4331
AlmaLinux9nodejs-nodemon2.0.20-2.module_el9.2.0+29+de583a0bALSA-2023:4330
AlmaLinux9nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:4330
2 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:18.16.1-1.module+el8.8.0+1413+a47876c7RLSA-2023:4536
Rocky Linux8nodejs-nodemon0:2.0.20-2.module+el8.7.0+1177+510ae886RLSA-2023:4536
Rocky Linux8nodejs-nodemon0:2.0.20-3.module+el8.7.0+1178+d52dba78RLSA-2023:4537
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2023:4536
Rocky Linux8nodejs-packaging0:25-1.module+el8.7.0+1108+49363b0dRLSA-2023:4537
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.7.0+40022+9ecc286cRLSA-2023:4330

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as an IMPORTANT severity because this vulnerability is a policy bypass resulting from the improper handling of the JavaScript prototype chain. A malicious actor can trigger this flaw by using process.mainModule.__proto__.require() to load and execute modules explicitly disallowed by the policy.json configuration.

Successful exploitation allows for the execution of unauthorized code within the context of the application process, leading to a compromise of system integrity.

At the time of this CVE's disclosure, the affected policy mechanism was designated as an experimental feature.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:18-8080020230718130356.63b34585Fixed 2023-08-08RHSA-2023:4536
Red Hat Enterprise Linux 8nodejs:16-8080020230718141521.63b34585Fixed 2023-08-08RHSA-2023:4537
Red Hat Enterprise Linux 8.6 Extended Update Supportnodejs:16-8060020230906023909.ad008a3aFixed 2023-09-26RHSA-2023:5361
Red Hat Enterprise Linux 9nodejs:18-9020020230717125503.rhel9Fixed 2023-07-31RHSA-2023:4330
Red Hat Enterprise Linux 9nodejs-1:16.20.1-1.el9_2Fixed 2023-07-31RHSA-2023:4331
Red Hat Enterprise Linux 9.0 Extended Update Supportnodejs-1:16.20.2-1.el9_0Fixed 2023-10-09RHSA-2023:5533
Red Hat Enterprise Linux 8nodejs:14/nodejsWill not fix
Red Hat Software Collectionsrh-nodejs14-nodejsWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-30581.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-15Siemens SINEC NMS2024-02-13MultipleSINEC NMSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-665 Exploitation of Thunderbolt Protection Flaws Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON