CVE-2023-32006: High severity langgenius dify node.js vulnerability

Published Aug 10, 2023
·
Updated

Node.js could allow a remote attacker to bypass security restrictions, caused by the use of module.constructor.createRequire(). By sending a specially crafted request, an attacker could exploit this vulnerability to bypass the permission policy mechanism.

Other sources

The use of module.constructor.createRequire() 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.

Ubuntu

The use of module.constructor.createRequire() can bypass the policy mechanism and require modules outside of the policy.json definition for a given module. Please note that at the time this CVE was issued, the policy mechanism is an experimental feature of Node.js. This vulnerability affects all users using the experimental policy mechanism in all active release lines: 16.x, 18.x and, 20.x.

Security Advisory: https://nodejs.org/en/blog/vulnerability/august-2023-security-releases#permissions-policies-can-impersonate-other-modules-in-using-moduleconstructorcreaterequire-mediumcve-2023-32006

Red Hat

Affected Software

8 affected componentsFixes available
ubuntu/nodejs<12.22.9~dfsg-1ubuntu3.6
12.22.9~dfsg-1ubuntu3.6
ubuntu/nodejs<18.13.0+dfsg1-1ubuntu2.3
18.13.0+dfsg1-1ubuntu2.3
debian/nodejs<=12.22.12~dfsg-1~deb11u4
18.19.0+dfsg-6~deb12u218.19.0+dfsg-6~deb12u120.14.0+dfsg-320.15.0+dfsg-1
Nodejs Node.js>=16.0.0<=16.20.1
Nodejs Node.js>=18.0.0<=18.17.0
Nodejs Node.js>=20.0.0<=20.5.0
Fedoraproject Fedora=37
Fedoraproject Fedora=38

Event History

Aug 10, 2023
Data Sourced
via Red Hat·10:04 AM
DescriptionSeverityAffected Software
Aug 15, 2023
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·03:10 PM
Data Sourced
via MITRE·03:10 PM
Description
Dec 13, 2023
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Jun 11, 2024
Data Sourced
via Launchpad·04:16 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-32006?

CVE-2023-32006 refers to a vulnerability that allows the bypassing of the policy mechanism in Node.js, potentially allowing modules to be required outside of the defined policy.

2

Who is affected by CVE-2023-32006?

This vulnerability affects all users of Node.js who are using the experimental policy mechanism in versions 16.x, 18.x, and 20.x.

3

What is the severity of CVE-2023-32006?

CVE-2023-32006 has a severity rating of 8.8 (high).

4

How can CVE-2023-32006 be exploited?

CVE-2023-32006 can be exploited by utilizing the `module.constructor.createRequire()` function to require modules that are not defined in the policy.json file.

5

Are there any references for CVE-2023-32006?

Yes, you can find more information about CVE-2023-32006 at the following references: [Link1](https://hackerone.com/reports/2043807), [Link2](https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JQPELKG2LVTADSB7ME73AV4DXQK47PWK/), [Link3](https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PBOZE2QZIBLFFTYWYN23FGKN6HULZ6HX/)

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