Description
A flaw in Node.js’s Permissions model allows attackers to bypass `--allow-fs-read` and `--allow-fs-write` restrictions using crafted relative symlink paths. By chaining directories and symlinks, a script granted access only to the current directory can escape the allowed path and read sensitive files. This breaks the expected isolation guarantees and enables arbitrary file read/write, leading to potential system compromise. This vulnerability affects users of the permission model on Node.js v20, v22, v24, and v25.
CVSS breakdown
CVSS 3.1
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
Affected products
- nodejs / node20.19.6 – 20.19.6
- nodejs / node22.21.1 – 22.21.1
- nodejs / node24.12.0 – 24.12.0
- nodejs / node25.2.1 – 25.2.1
- nodejs / node.js20.0.0 – 20.20.0
Updated 5m ago · 8 sources