JLSEC-2026-1938: The use of `module.constructor.createRequire()` can bypass the policy mechanism and require...
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/NodeJS_16_jllto a version that resolves this vulnerability.Fixed in 16.20.2+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using Node.js 16.x, 18.x, or 20.x with the experimental policy mechanism enabled are affected. The listed software packages are julia/nodejs_16_jll, julia/nodejs_18_jll, and julia/libnode_jll.
What access does an attacker need to exploit the policy bypass?
The vulnerability has a network attack vector, low attack complexity, requires low privileges, and does not require user interaction. Exploitation involves using module.constructor.createRequire() to load modules outside the policy.json definition for a module.
Are installations that do not use Node.js policy files affected?
The issue is described as affecting users of the experimental Node.js policy mechanism. The provided information does not indicate that deployments without this mechanism enabled are affected.