CVE-2023-32006

HIGHCVSS 8.8/10EPSS 1.27%

Last modified

CVE-2023-32006 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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.. EPSS estimates a 1.27% chance of exploitation in the next 30 days.

Description

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.

Metrics

CVSS 3.1
8.8/10

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
1.27%

66.2th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
NodejsNode.Js>= 16.0.0, <= 16.20.1
NodejsNode.Js>= 18.0.0, <= 18.17.0
NodejsNode.Js>= 20.0.0, <= 20.5.0
FedoraprojectFedora37
FedoraprojectFedora38

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2023-32006?
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.
How severe is CVE-2023-32006?
CVE-2023-32006 has a CVSS score of 8.8/10 (HIGH severity). The EPSS model estimates a 1.27% probability of exploitation in the next 30 days.
How do I fix CVE-2023-32006?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2023-32006?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST