CVE-2023-30581
Reported by hackerone · Published November 22, 2023
The use of __proto__ in process.mainModule.__proto__.require() can bypass the policy mechanism and require modules outside of the policy.json definition. This vulnerability affects all users using the experimental policy mechanism in all active release lines: v16, v18 and, v20. Please note that at the time this CVE was issued, the policy is an experimental feature of Node.js
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nodejs-devel | Amazon Linux | 1:18.12.1-1.amzn2023.0.7 |
| nodejs-packaging-bundler | errata.rockylinux.org | 0:2021.06-4.module+el9.7.0+40022+9ecc286c.noarch |
| node | dhi.docker.com | 20.3.1, 18.16.1, 16.20.1 |
| npm | Amazon Linux | 1:8.19.2-1.18.12.1.1.amzn2023.0.7 |
| nodejs-packaging | errata.rockylinux.org | 0:2021.06-4.module+el9.7.0+40022+9ecc286c.src, 0:2021.06-4.module+el9.7.0+40022+9ecc286c.noarch |
| nodejs-16 | Wolfi | 16.20.1-r0 |
| node | Bitnami | 20.3.1, 18.16.1, 16.20.1 |
| nodejs-full-i18n | Amazon Linux | 1:18.12.1-1.amzn2023.0.7 |
| v8-devel | Amazon Linux | 2:10.2.154.15-1.18.12.1.1.amzn2023.0.7 |
| nodejs-20 | Wolfi | 20.3.1-r0 |
| nodejs-18 | Wolfi | 18.16.1-r0 |
| nodejs-docs | Amazon Linux | 1:18.12.1-1.amzn2023.0.7 |
15 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| NodeJS | Node | 4.0, 5.0, 6.0 |
| amazon:2023 | nodejs-devel | 0 |
| amazon:2023 | npm | 0 |
| wolfi | nodejs-16 | 0 |
| amazon:2023 | nodejs-full-i18n | 0 |
| amazon:2023 | v8-devel | 0 |
| wolfi | nodejs-20 | 0 |
| wolfi | nodejs-18 | 0 |
| amazon:2023 | nodejs-docs | 0 |
| amazon:2023 | nodejs | 0 |
| chainguard | nodejs-20 | 0 |
| amazon:2023 | nodejs-libs | 0 |
| NodeJS | Node | 8.0, 19.0, 6.0 |
| chainguard | nodejs-16 | 0 |
| chainguard | nodejs-18 | 0 |
Timeline
- Jul 20, 2023 PoC Published
- Nov 22, 2023 CVE Published
- Nov 23, 2023 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Security Advisory (10 in total, the first dated here)
- Nov 12, 2026 Distribution Patch (8 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-30581
vulnetix vdb fixes CVE-2023-30581
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-30581/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart