JLSEC-2026-1938: The use of `module.constructor.createRequire()` can bypass the policy mechanism and require...

Published Dec 2, 2026
·
Updated

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

3 affected componentsFixes available
julia/nodejs_16_jll<16.20.2+0
16.20.2+0
julia/nodejs_18_jll*
julia/libnode_jll>=16.14.0+0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade julia/NodeJS_16_jll to a version that resolves this vulnerability.

    Fixed in 16.20.2+0

Event History

Dec 2, 2026
Advisory Published
via OSV·03:31 PM
Data Sourced
via OSV·03:31 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203