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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"nodejs:node.js": [
">= 16.0.0, <= 16.20.1",
">= 18.0.0, <= 18.17.0",
">= 20.0.0, <= 20.5.0"
]
},
"database_specific": {
"status": "Modified"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-32006",
"id": "CVE-2023-32006",
"imported": "2026-12-02T14:45:39.816Z",
"modified": "2026-06-17T05:57:50.003Z",
"published": "2023-08-15T16:15:11.460Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2023-32006"
},
{
"html_url": "https://github.com/advisories/GHSA-356r-x8g9-vh8c",
"id": "GHSA-356r-x8g9-vh8c",
"imported": "2026-12-02T14:50:53.093Z",
"modified": "2025-05-08T18:30:30Z",
"published": "2023-08-15T18:31:32Z",
"url": "https://api.github.com/advisories/GHSA-356r-x8g9-vh8c"
},
{
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-36294",
"id": "EUVD-2023-36294",
"imported": "2026-12-02T14:45:41.785Z",
"modified": "2025-05-08T16:07:02Z",
"published": "2023-08-15T15:10:09Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2023-36294"
}
]
}