Insecure File Permission Management in Node.js by Joyent
CVE-2026-21716

3.3LOW

Key Information:

Vendor

Nodejs

Status
Vendor
CVE Published:
30 March 2026

What is CVE-2026-21716?

A vulnerability in Node.js arises from incomplete fixes related to file permission checks in the promises API. Specifically, the FileHandle.chmod() and FileHandle.chown() methods lack necessary permission checks, allowing unauthorized modification of file permissions and ownership. This issue persists for processes using the Permission Model with restricted --allow-fs-write, potentially exposing sensitive files to unauthorized changes. While the callback-based equivalents (fs.fchmod(), fs.fchown()) have been addressed, the promise-based methods remain vulnerable, posing a significant risk to applications relying on Node.js versions 20.x, 22.x, 24.x, and 25.x.

Affected Version(s)

node 20.20.1

node 22.22.1

node 24.14.0

References

CVSS V3.0

Score:
3.3
Severity:
LOW
Confidentiality:
None
Integrity:
Low
Availability:
None
Attack Vector:
Local
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.