Filesystem Vulnerability in Node.js Across Multiple Versions
CVE-2026-21715

3.3LOW

Key Information:

Vendor

Nodejs

Status
Vendor
CVE Published:
30 March 2026

What is CVE-2026-21715?

A security flaw within the Node.js Permission Model allows the function fs.realpathSync.native() to bypass necessary read permission checks. While other filesystem functions correctly enforce permissions, this oversight means that code executed with restricted access under the --permission flag can still leverage fs.realpathSync.native() to verify file existence, target symlink resolution, and browse filesystem paths beyond the intended directories. This vulnerability impacts Node.js versions 20.x, 22.x, 24.x, and 25.x where --allow-fs-read is limited.

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:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Local
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.