CVE-2023-23918: Node.js Permissions policies can be bypassed via process.mainModule

Published Feb 16, 2023
·
Updated

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.

Other sources

It was possible to bypass Permissions and access non authorized modules by using process.mainModule.require(). This only affects users who had enabled the experimental permissions option with --experimental-policy.

— Red Hat

Node.js could allow a remote authenticated attacker to bypass security restrictions, caused by a flaw when enable the experimental permissions option with --experimental-policy. By sending a specially-crafted request using process.mainModule.require(), an attacker could exploit this vulnerability to bypass Permissions and access non authorized modules.

— IBM

Affected Software

22 affected componentsFixes available
redhat/nodejs<18-9020020230327152102.rhel9
18-9020020230327152102.rhel9
redhat/nodejs<1:16.19.1-1.el9_2
1:16.19.1-1.el9_2
redhat/rh-nodejs14<0:3.6-2.el7
0:3.6-2.el7
redhat/rh-nodejs14-nodejs<0:14.21.3-2.el7
0:14.21.3-2.el7
IBM Cognos Controller<=11.0.0 - 11.0.1
Nodejs Node.js>=14.0.0<=14.14.0
Nodejs Node.js>=14.0.0<14.21.3
Nodejs Node.js>=16.0.0<=16.12.0
Nodejs Node.js>=16.0.0<16.19.1
Nodejs Node.js>=18.0.0<=18.11.0
Nodejs Node.js>=18.0.0<18.14.1
Nodejs Node.js>=19.0.0<19.6.1
redhat/node.js<19.6.1
19.6.1
redhat/node.js<18.14.1
18.14.1
redhat/node.js<16.19.1
16.19.1
redhat/node.js<14.21.3
14.21.3
Node.js Node.js>=14.0.0<14.21.3, >=16.0.0<16.19.1, >=18.0.0<18.14.1, >=19.0.0<19.6.1
14.21.316.19.118.14.119.6.1
Node.js Node.js>=14.0.0<14.21.3
14.21.3
Node.js Node.js>=16.0.0<16.19.1
16.19.1
Node.js Node.js>=18.0.0<18.14.1
18.14.1
Node.js Node.js>=19.0.0<19.6.1
19.6.1
debian/nodejs
18.19.0+dfsg-6~deb12u118.19.0+dfsg-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/nodejs to a version that resolves this vulnerability.

    Fixed in 18-9020020230327152102.rhel9
  2. Upgrade

    Upgrade redhat/nodejs to a version that resolves this vulnerability.

    Fixed in 1:16.19.1-1.el9_2
  3. Upgrade

    Upgrade redhat/rh-nodejs14 to a version that resolves this vulnerability.

    Fixed in 0:3.6-2.el7
  4. Upgrade

    Upgrade redhat/rh-nodejs14-nodejs to a version that resolves this vulnerability.

    Fixed in 0:14.21.3-2.el7
  5. Upgrade

    Upgrade redhat/Node.js to a version that resolves this vulnerability.

    Fixed in 19.6.1
  6. Upgrade

    Upgrade redhat/Node.js to a version that resolves this vulnerability.

    Fixed in 18.14.1
  7. Upgrade

    Upgrade redhat/Node.js to a version that resolves this vulnerability.

    Fixed in 16.19.1
  8. Upgrade

    Upgrade redhat/Node.js to a version that resolves this vulnerability.

    Fixed in 14.21.3
  9. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.21.3Fixed in 16.19.1Fixed in 18.14.1Fixed in 19.6.1
  10. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.21.3
  11. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.19.1
  12. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 18.14.1
  13. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 19.6.1
  14. Upgrade

    Upgrade debian/nodejs to a version that resolves this vulnerability.

    Fixed in 18.19.0+dfsg-6~deb12u1Fixed in 18.19.0+dfsg-2
  15. Upgrade

    Upgrade Node.js to a version that resolves this vulnerability.

    Fixed in 19.6.1
  16. Upgrade

    Upgrade Node.js to a version that resolves this vulnerability.

    Fixed in 18.14.1
  17. Upgrade

    Upgrade Node.js to a version that resolves this vulnerability.

    Fixed in 16.19.1
  18. Upgrade

    Upgrade Node.js to a version that resolves this vulnerability.

    Fixed in 14.21.3

Event History

Feb 16, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Node.js·09:00 PM
DescriptionSeverity
Data Sourced
via Node.js·10:08 PM
Affected Software
Feb 23, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 9, 2023
Data Sourced
via Red Hat·08:46 PM
DescriptionSeverityAffected Software
Oct 20, 2023
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Updated
via IBM·12:00 AM
Affected Software
Dec 3, 2024
Updated
via IBM·12:00 AM
Affected Software
May 8, 2025
Updated
via NVD·05:16 PM
SeverityAffected Software
Oct 24, 2026
Updated
via NVD·01:10 PM
Affected Software

Frequently Asked Questions

1

What is CVE-2023-23918?

CVE-2023-23918 is a privilege escalation vulnerability in Node.js versions <19.6.1, <18.14.1, <16.19.1, and <14.21.3.

2

How can this vulnerability be exploited?

This vulnerability allows an attacker to bypass the experimental Permissions feature in Node.js and access unauthorized modules by using process.mainModule.require().

3

What is the severity level of CVE-2023-23918?

CVE-2023-23918 has a severity level of high.

4

How can I fix CVE-2023-23918?

To fix CVE-2023-23918, you need to update your Node.js version to 19.6.1 or higher, 18.14.1 or higher, 16.19.1 or higher, or 14.21.3 or higher.

5

Where can I find more information about CVE-2023-23918?

You can find more information about CVE-2023-23918 on the Red Hat Bugzilla website, using the following links: [link1], [link2], [link3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203