CVE-2023-32006

published 15 Aug 2023 · updated 8 May 2025

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.

8.8HighCVSS 8.8EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 10.*, 11.*, 12.* and 14 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
nodejs>=10.0 <10.*, >=11.0 <11.*, >=12.0 <12.*, >=13.0 <13.*, >=14.0 <14.*, >=15.0 <15.*, >=16.0 <16.20.2, >=17.0 <17.*, >=18.0 <18.17.1, >=19.0 <19.*, >=20.0 <20.5.1, >=4.0 <4.*, >=5.0 <5.*, >=6.0 <6.*, >=7.0 <7.*, >=8.0 <8.*, >=9.0 <9.*10.*, 11.*, 12.*, 13.*, 14.*, 15.*, 16.20.2, 17.*, 18.17.1, 19.*, 20.5.1, 4.*, 5.*, 6.*, 7.*, 8.*, 9.*

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-32006 severity on Zeptric[![CVE-2023-32006](https://zeptric.io/badge/cve/CVE-2023-32006.svg)](https://zeptric.io/cve/CVE-2023-32006)