VDB

CVE-2023-30581

CVE-2023-30581 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
nodejs-develAmazon Linux1:18.12.1-1.amzn2023.0.7
nodejs-packaging-bundlererrata.rockylinux.org0:2021.06-4.module+el9.7.0+40022+9ecc286c.noarch
nodedhi.docker.com20.3.1, 18.16.1, 16.20.1
npmAmazon Linux1:8.19.2-1.18.12.1.1.amzn2023.0.7
nodejs-packagingerrata.rockylinux.org0:2021.06-4.module+el9.7.0+40022+9ecc286c.src, 0:2021.06-4.module+el9.7.0+40022+9ecc286c.noarch
nodejs-16Wolfi16.20.1-r0
nodeBitnami20.3.1, 18.16.1, 16.20.1
nodejs-full-i18nAmazon Linux1:18.12.1-1.amzn2023.0.7
v8-develAmazon Linux2:10.2.154.15-1.18.12.1.1.amzn2023.0.7
nodejs-20Wolfi20.3.1-r0
nodejs-18Wolfi18.16.1-r0
nodejs-docsAmazon Linux1:18.12.1-1.amzn2023.0.7

15 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
NodeJSNode4.0, 5.0, 6.0
amazon:2023nodejs-devel0
amazon:2023npm0
wolfinodejs-160
amazon:2023nodejs-full-i18n0
amazon:2023v8-devel0
wolfinodejs-200
wolfinodejs-180
amazon:2023nodejs-docs0
amazon:2023nodejs0
chainguardnodejs-200
amazon:2023nodejs-libs0
NodeJSNode8.0, 19.0, 6.0
chainguardnodejs-160
chainguardnodejs-180

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›