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.

Project Subscriptions

Vendors Products
Fedoraproject Subscribe
Node.js Subscribe
Enterprise Linux Subscribe
Rhel Eus Subscribe
Advisories
Source ID Title
Debian DSA Debian DSA DSA-5589-1 nodejs security update
EUVD EUVD EUVD-2023-36294 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.
Ubuntu USN Ubuntu USN USN-6822-1 Node.js vulnerabilities
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Mon, 14 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.00049}

epss

{'score': 0.00053}


Thu, 08 May 2025 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-693

Tue, 08 Oct 2024 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: hackerone

Published:

Updated: 2025-05-08T16:07:02.197Z

Reserved: 2023-05-01T01:00:12.220Z

Link: CVE-2023-32006

cve-icon Vulnrichment

Updated: 2024-08-02T15:03:28.787Z

cve-icon NVD

Status : Modified

Published: 2023-08-15T16:15:11.460

Modified: 2025-05-08T16:15:23.317

Link: CVE-2023-32006

cve-icon Redhat

Severity : Moderate

Publid Date: 2023-08-09T00:00:00Z

Links: CVE-2023-32006 - Bugzilla

cve-icon OpenCVE Enrichment

No data.