An incomplete fix for CVE-2024-36137 leaves FileHandle.chmod() and FileHandle.chown() in the promises API without the required permission checks, while their callback-based equivalents (fs.fchmod(), fs.fchown()) were correctly patched.
As a result, code running under --permission with restricted --allow-fs-write can still use promise-based FileHandle methods to modify file permissions and ownership on already-open file descriptors, bypassing the intended write restrictions.
This vulnerability affects 20.x, 22.x, 24.x, and 25.x processes using the Permission Model where --allow-fs-write is intentionally restricted.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"nodejs:node.js": [
"<= 20.20.1",
">= 22.0.0, <= 22.22.1",
">= 24.0.0, <= 24.14.0",
">= 25.0.0, <= 25.8.1"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-21716",
"id": "CVE-2026-21716",
"imported": "2026-12-02T14:45:39.988Z",
"modified": "2026-08-19T13:18:02.937Z",
"published": "2026-03-30T20:16:19.873Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-21716"
},
{
"html_url": "https://github.com/advisories/GHSA-22vj-v4r3-878v",
"id": "GHSA-22vj-v4r3-878v",
"imported": "2026-12-02T14:46:00.814Z",
"modified": "2026-03-31T15:32:59Z",
"published": "2026-03-30T21:31:04Z",
"url": "https://api.github.com/advisories/GHSA-22vj-v4r3-878v"
},
{
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-17180",
"id": "EUVD-2026-17180",
"imported": "2026-12-02T14:45:41.718Z",
"modified": "2026-03-31T14:27:23Z",
"published": "2026-03-30T19:07:28Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-17180"
}
]
}