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.
affected:
{
defaultStatus: unaffected
vendor: Node.js
product: Node.js
versions:
version: 20.5.0, status: affected, lessThanOrEqual: 20.5.0, versionType: semver
version: 18.17.0, status: affected, lessThanOrEqual: 18.17.0, versionType: semver
version: 16.20.1, status: affected, lessThanOrEqual: 16.20.1, versionType: semver
}