Lack of data validation - Path Traversal In nodejs
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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
alpine v3.22 | 22.22.0-r0 | ||
debian 14 | 22.22.0+dfsg+~cs22.19.6-1 | ||
alpine v3.23 | 24.13.0-r0 | ||
debian 13 | 20.19.2+dfsg-1+deb13u1 | ||
rpm rhel8 | 1:20.20.0-1.module+el8.10.0+23905+c49b2aec | ||
rpm rhel9 | 1:20.20.0-1.module+el9.7.0+23895+0637d423 | ||
rpm rhel9.4 | 1:20.20.0-1.module+el9.4.0+23992+5dc31998 | ||
rpm rhel9.6 | 1:20.20.0-1.module+el9.6.0+23988+6b9eae47 | ||
rpm rhel10 | 1:22.22.0-3.el10_1 | ||
rpm rhel10.0 | 1:22.22.0-1.el10_0 |
1-10 of 12
10
Aliases
References