CVE-2023-32006: 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.
CVE-2023-32006 is a vulnerability in 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., rated Important by Microsoft, with a CVSS 3.1 base score of 8.8 (High). An attacker can exploit it remotely over the network, with low privileges and without user interaction. Microsoft has not reported exploitation in the wild. The EPSS model estimates a 1.54% probability of exploitation activity in the next 30 days, higher than 76% of all scored vulnerabilities. Microsoft released the fix on 20 August 2023, outside Patch Tuesday. It affects 2 products in 1 product family (Mariner).
Key facts
- CVE ID
- CVE-2023-32006
- Severity
- High CVSS 8.8
- Microsoft severity
- Important
- Exploited in the wild
- No
- Publicly disclosed
- No
- Weakness
- CWE-693
- EPSS
- 1.54% (percentile 76%)
- CISA KEV
- Not listed
- Released
- Last updated
- Patch Tuesday
- August 2023 Patch Tuesday
- Product families
- Mariner
CVSS score and vector
Microsoft scores CVE-2023-32006 at 8.8 (temporal 8.8) using CVSS 3.1. Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
| Metric | Value |
|---|---|
| Attack vector | Network |
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality impact | High |
| Integrity impact | High |
| Availability impact | High |
Frequently asked questions (Microsoft)
Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Affected products (2)
Mariner
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| cbl2 nodejs 16.20.2-2 on CBL Mariner 2.0 | CBL-Mariner Releases | Security Update | 16.20.2-2 | No |
| cbl2 nodejs18 18.17.1-2 on CBL Mariner 2.0 | CBL-Mariner Releases | Security Update | 18.17.1-2 | No |
NIST NVD data
- NVD status
- Modified
- NVD CVSS
- 8.8 (HIGH)
- NVD weakness
- CWE-693
- Published to NVD
- NVD last modified
Affected configurations (CPE)
| Product | Vulnerable versions |
|---|---|
| node.js | from 16.0.0, up to and including 16.20.1 |
| node.js | from 18.0.0, up to and including 18.17.0 |
| node.js | from 20.0.0, up to and including 20.5.0 |
| fedora 37 | all listed versions |
| fedora 38 | all listed versions |
References
- https://hackerone.com/reports/2043807 (Issue Tracking)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JQPELKG2LVTADSB7ME73AV4DXQK47PWK/ (Mailing List)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PBOZE2QZIBLFFTYWYN23FGKN6HULZ6HX/ (Mailing List)
- https://security.netapp.com/advisory/ntap-20230915-0009/
- https://hackerone.com/reports/2043807 (Issue Tracking)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JQPELKG2LVTADSB7ME73AV4DXQK47PWK/ (Mailing List)
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PBOZE2QZIBLFFTYWYN23FGKN6HULZ6HX/ (Mailing List)
- https://security.netapp.com/advisory/ntap-20230915-0009/
Revision history
| Version | Date | Description |
|---|---|---|
| 1.0 | Information published. | |
| 1.1 | Added nodejs to CBL-Mariner 2.0 |