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
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"nodejs:node.js": [
">= 16.0.0, < 16.20.1",
">= 18.0.0, < 18.16.1",
">= 20.0.0, < 20.3.1"
]
},
"database_specific": {
"status": "Modified"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-30581",
"id": "CVE-2023-30581",
"imported": "2026-12-02T14:45:39.855Z",
"modified": "2026-06-17T05:55:03.993Z",
"published": "2023-11-23T00:15:07.980Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2023-30581"
},
{
"html_url": "https://github.com/advisories/GHSA-86v4-9wq7-fx97",
"id": "GHSA-86v4-9wq7-fx97",
"imported": "2026-12-02T14:45:52.044Z",
"modified": "2025-11-04T00:30:42Z",
"published": "2023-11-23T00:30:58Z",
"url": "https://api.github.com/advisories/GHSA-86v4-9wq7-fx97"
},
{
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-34962",
"id": "EUVD-2023-34962",
"imported": "2026-12-02T14:45:41.785Z",
"modified": "2025-11-03T21:48:01Z",
"published": "2023-11-22T23:28:30Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2023-34962"
}
]
}