cve.bz

CVE-2023-23918 nodejs node.js: Incorrect Authorization

7.5 highEPSS 2.0%Fix available

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

On this page
A privilege escalation vulnerability exists in Node.js <19.6.1, <18.14.1, <16.19.1 and <14.21.3 that made it possible to bypass the experimental Permissions (https://nodejs.org/api/permissions.html) feature in Node.js and access non authorized modules by using process.mainModule.require(). This only affects users who had enabled the experimental permissions option with --experimental-policy.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-15. 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-03-12. 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-863 Incorrect 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-23918 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-23918?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-23918?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-23918 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.

Badge for a README or a site

CVE-2023-23918

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2023-23918](https://cve.bz/cve/badge/CVE-2023-23918.svg)](https://cve.bz/cve/CVE-2023-23918)

HTML:

<a href="https://cve.bz/cve/CVE-2023-23918"><img src="https://cve.bz/cve/badge/CVE-2023-23918.svg" alt="CVE-2023-23918"></a>

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.21.3
NodeJS Nodefrom 15.0 before 15.*
NodeJS Nodefrom 16.0 before 16.19.1
NodeJS Nodefrom 17.0 before 17.*
NodeJS Nodefrom 18.0 before 18.14.1
NodeJS Nodefrom 19.0 before 19.6.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12nodejs18.19.0+dfsg-6~deb12u1DEBIAN-CVE-2023-23918 DSA-5589-1
Debian13, 14nodejs18.19.0+dfsg-2DEBIAN-CVE-2023-23918
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:14.21.3-1.module+el8.7.0+18531+81d21ca6RHSA-2023:1743
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:16.19.1-1.module+el8.7.0+18373+704f5cefRHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.14.2-2.module+el8.7.0+18445+9493b6eaRHSA-2023:1583
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-2.module+el8.7.0+18445+9493b6eaRHSA-2023:1583
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-3.module+el8.7.0+18373+704f5cefRHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-3.module+el8.7.0+18531+81d21ca6RHSA-2023:1743
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:23-3.module+el8.3.0+6519+9f98ed83RHSA-2023:1743
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:1583
Red Hatenterprise_linux:8::appstreamnpm1:6.14.18-1.14.21.3.1.module+el8.7.0+18531+81d21ca6RHSA-2023:1743
Red Hatenterprise_linux:8::appstreamnpm1:8.19.3-1.16.19.1.1.module+el8.7.0+18373+704f5cefRHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnpm1:9.5.0-1.18.14.2.2.module+el8.7.0+18445+9493b6eaRHSA-2023:1583
18 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, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morenodejs1414.21.3-150200.15.43.1SUSE-SU-2023:0674-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 3 morenodejs1616.19.1-150300.7.18.1SUSE-SU-2023:0673-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1414.21.3-6.40.1SUSE-SU-2023:0607-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1616.19.1-8.24.1SUSE-SU-2023:0609-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1818.14.2-8.6.2SUSE-SU-2023:0715-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1616.19.1-150400.3.15.1SUSE-SU-2023:0608-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1818.14.2-150400.9.6.2SUSE-SU-2023:0738-1
openSUSELeap 15.4nodejs1212.22.12-150200.4.50.1SUSE-SU-2023:3455-1
openSUSELeap 15.4nodejs1414.21.3-150200.15.43.1SUSE-SU-2023:0674-1
openSUSELeap 15.4nodejs1616.19.1-150400.3.15.1SUSE-SU-2023:0608-1
openSUSELeap 15.4nodejs1818.14.2-150400.9.6.2SUSE-SU-2023:0738-1
openSUSETumbleweednodejs1818.14.2-1.1openSUSE-SU-2024:12725-1
openSUSETumbleweednodejs1919.7.0-1.1openSUSE-SU-2024:12726-1
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:14.21.3-1.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:16.19.1-1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:18.14.2-2.module_el8.7.0+3497+c65299e7ALSA-2023:1583
AlmaLinux8nodejs-nodemon2.0.20-2.module_el8.7.0+3497+c65299e7ALSA-2023:1583
AlmaLinux8nodejs-nodemon2.0.20-3.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux8nodejs-nodemon2.0.20-3.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux8nodejs-packaging23-3.module_el8.4.0+2522+3bd42762ALSA-2023:1743
AlmaLinux8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2023:1582
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:1583
AlmaLinux8npm1:6.14.18-1.14.21.3.1.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux8npm1:8.19.3-1.16.19.1.1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux8npm1:9.5.0-1.18.14.2.2.module_el8.7.0+3497+c65299e7ALSA-2023:1583
6 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:14.21.3-1.module+el8.7.0+1183+c2c35f0aRLSA-2023:1743
Rocky Linux8nodejs1:16.19.1-1.module+el8.7.0+1178+d52dba78RLSA-2023:1582
Rocky Linux8nodejs1:18.14.2-2.module+el8.7.0+1177+510ae886RLSA-2023:1583
Rocky Linux8nodejs-nodemon0:2.0.20-2.module+el8.7.0+1108+49363b0dRLSA-2023:1583
Rocky Linux8nodejs-nodemon0:2.0.20-3.module+el8.7.0+1178+d52dba78RLSA-2023:1582 RLSA-2023:1743
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2023:1583
Rocky Linux8nodejs-packaging0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2023:1743
Rocky Linux8nodejs-packaging0:25-1.module+el8.6.0+1046+80feca58RLSA-2023:1582
Rocky Linux9nodejs1:16.19.1-1.el9_2RLSA-2023:2655
Rocky Linux9nodejs-nodemon0:2.0.20-3.el9_2RLSA-2023:2655
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.7.0+40017+f0db1785RLSA-2023:2654
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.7.0+40018+a011993dRLSA-2023:2654
2 more for Rocky Linux in the JSON.
Alpinev3.14nodejs14.21.3-r0ALPINE-CVE-2023-23918
Alpinev3.15, v3.16nodejs16.19.1-r0ALPINE-CVE-2023-23918
Alpinev3.17, v3.18, v3.19 and 5 morenodejs18.14.1-r0ALPINE-CVE-2023-23918
Azure Linux2nodejs16.19.1-1AZL-13776

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; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The vulnerability in question can only be triggered by an attacker if the victim has enabled --experimental-policy which in many node.js deployments won't ,which marks the conditions for exploitability outside of the attacker's control.

Red Hat's mitigation

Turn off the --experimental-policy in your Node.js deployment.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:16-8070020230314140722.bd1311edFixed 2023-04-04RHSA-2023:1582
Red Hat Enterprise Linux 8nodejs:18-8070020230322080930.bd1311edFixed 2023-04-04RHSA-2023:1583
Red Hat Enterprise Linux 8nodejs:14-8070020230306170042.bd1311edFixed 2023-04-12RHSA-2023:1743
Red Hat Enterprise Linux 8.4 Extended Update Supportnodejs:14-8040020230306170312.522a0ee4Fixed 2023-03-30RHSA-2023:1533
Red Hat Enterprise Linux 8.6 Extended Update Supportnodejs:14-8060020230306170237.ad008a3aFixed 2023-04-12RHSA-2023:1742
Red Hat Enterprise Linux 9nodejs:18-9020020230327152102.rhel9Fixed 2023-05-09RHSA-2023:2654
Red Hat Enterprise Linux 9nodejs-1:16.19.1-1.el9_2Fixed 2023-05-09RHSA-2023:2655
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-0:3.6-2.el7Fixed 2023-04-12RHSA-2023:1744
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-nodejs-0:14.21.3-2.el7Fixed 2023-04-12RHSA-2023:1744
Red Hat 3scale API Management Platform 23scale-amp-system-containerWill not fix
Red Hat Enterprise Linux 8nodejsNot affected

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-23918.

References

Check your stackJSON