Node.js Permissions Model Bypass via Crafted Symlinks Allowing Arbitrary File Read/Write

Vulnerability

A vulnerability in Node.js's permissions model enables attackers to circumvent '--allow-fs-read' and '--allow-fs-write' restrictions by using manipulated relative symlink paths. This issue is present in Node.js versions 20.x, 22.x, 24.x, and 25.x. By chaining directories and symlinks, a script with access limited to the current directory can escape the designated path and access sensitive files. This behavior undermines the expected isolation and allows arbitrary reading or writing of files, potentially leading to system compromise.

Impact

Exploitation of this vulnerability could result in unauthorized access to sensitive files or arbitrary file modifications, with the potential for system compromise.

Remediation

Users can upgrade to Node.js versions 20.20.0, 22.22.0, 24.13.0, or 25.4.0 to address this vulnerability.

Added: Jan 20, 2026, 9:32 PM
Updated: Jan 20, 2026, 9:32 PM

Vulnerability Rating

Custom Algorithm
spread
7.8
impact
2.5
exploitability
3.3
remediation
7.7
relevance
2.2
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.