CVE-2023-32006: High severity langgenius dify node.js vulnerability
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
Event History
Frequently Asked Questions
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.
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.
What is the severity of CVE-2023-32006?
CVE-2023-32006 has a severity rating of 8.8 (high).
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.
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/)