Improper Access Control in Node.js - CVE-2026-21716

 

Improper Access Control in Node.js - CVE-2026-21716

Published: March 25, 2026


Vulnerability identifier: #VU124549
CSH Severity: Low
CVSS v4: 4.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-21716
CWE-ID: CWE-284
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to modify file permissions and ownership.

The vulnerability exists due to improper access control in FileHandle.chmod() and FileHandle.chown() methods in the promises API when modifying file metadata. A local user can run code under --permission with restricted --allow-fs-write to use promise-based FileHandle methods and change permissions or ownership of already-open file descriptors, bypassing intended write restrictions.

This issue affects only environments using the Permission Model with --allow-fs-write intentionally restricted.

Note, the vulnerability exists due to incomplete fix for #VU93881 (CVE-2024-36137).


Affected software

Node.js
Debian Linux
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for IBM z Systems
Web and Scripting Module
openSUSE Leap
Anolis OS
openEuler
Fedora
IBM Business Automation Workflow
npm
nodejs-npm
v8-devel
v8-12.4-devel
nodejs
nodejs-debuginfo
nodejs-debugsource
nodejs-devel
nodejs-full-i18n
nodejs-libs
nodejs-docs
nodejs (Debian package)
nodejs20
npm20
nodejs20-debuginfo
nodejs20-devel
corepack20
nodejs20-debugsource
nodejs20-docs
nodejs22
nodejs22-docs
nodejs22-debuginfo
nodejs22-devel
corepack22
nodejs22-debugsource
npm22
nodejs24 (Red Hat package)
nodejs24-devel
npm24
nodejs24-debuginfo
nodejs24
nodejs24-debugsource
nodejs24-docs

How to mitigate CVE-2026-21716

Install security update from vendor's website.

Node.js - addressed in versions 20.20.2, 22.22.2, 24.14.1, 25.8.2
IBM Business Automation Workflow - addressed in versions 24.0.0-IF009, 24.0.1-IF008, 25.0.0-IF005, 26.0.0.0
npm - update to 10.8.2-1.20.18.2.7
nodejs-npm - update to 10.9.4-1.22.22.0.5
v8-devel - update to 11.3.244.8-1.20.18.2.7
v8-12.4-devel - update to 12.4.254.21-1.22.22.0.5
nodejs - update to 20.18.2-7
nodejs-debuginfo - update to 20.18.2-7
nodejs-debugsource - update to 20.18.2-7
nodejs-devel - update to 20.18.2-7
nodejs-full-i18n - update to 20.18.2-7
nodejs-libs - update to 20.18.2-7
nodejs-docs - update to 20.18.2-7
nodejs (Debian package) - update to 20.19.2+dfsg-1+deb13u2
nodejs20 - addressed in versions 20.20.2-3.fc43, 20.20.2-3.fc44, 20.20.2-4.fc42
npm20 - addressed in versions 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
nodejs20-debuginfo - addressed in versions 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
nodejs20-devel - addressed in versions 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
corepack20 - addressed in versions 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
nodejs20 - addressed in versions 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
nodejs20-debugsource - addressed in versions 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
nodejs20-docs - addressed in versions 20.20.2-150500.11.27.1, 20.20.2-150600.3.18.1
nodejs-docs - update to 22.22.0-5
nodejs-libs - update to 22.22.0-5
nodejs-full-i18n - update to 22.22.0-5
nodejs-devel - update to 22.22.0-5
nodejs - update to 22.22.0-5
nodejs22 - addressed in versions 22.22.2-2.fc43, 22.22.2-3.fc42, 22.22.2-3.fc44
nodejs22 - addressed in versions 22.22.2-150600.13.15.1, 22.22.2-150700.3.9.1
nodejs22-docs - addressed in versions 22.22.2-150600.13.15.1, 22.22.2-150700.3.9.1
nodejs22-debuginfo - addressed in versions 22.22.2-150600.13.15.1, 22.22.2-150700.3.9.1
nodejs22-devel - addressed in versions 22.22.2-150600.13.15.1, 22.22.2-150700.3.9.1
corepack22 - update to 22.22.2-150600.13.15.1
nodejs22-debugsource - addressed in versions 22.22.2-150600.13.15.1, 22.22.2-150700.3.9.1
npm22 - addressed in versions 22.22.2-150600.13.15.1, 22.22.2-150700.3.9.1
nodejs24 (Red Hat package) - update to 24.14.1-2.el10_1
nodejs24-devel - update to 24.14.1-150700.15.8.1
npm24 - update to 24.14.1-150700.15.8.1
nodejs24-debuginfo - update to 24.14.1-150700.15.8.1
nodejs24 - update to 24.14.1-150700.15.8.1
nodejs24-debugsource - update to 24.14.1-150700.15.8.1
nodejs24-docs - update to 24.14.1-150700.15.8.1

External References

Related Security Bulletins