Improper authorization control for web services In nodejs
Description
A flaw in Node.js Permission Model filesystem enforcement leaves fs.realpathSync.native() without the required read permission checks, while all comparable filesystem functions correctly enforce them.
As a result, code running under --permission with restricted --allow-fs-read can still use fs.realpathSync.native() to check file existence, resolve symlink targets, and enumerate filesystem paths outside of permitted directories.
This vulnerability affects 20.x, 22.x, 24.x, and 25.x processes using the Permission Model where --allow-fs-read is intentionally restricted.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Component | Affected version | Patched versions |
|---|---|---|---|
alpine v3.21 | 22.22.2-r0 | ||
debian 13 | 20.19.2+dfsg-1+deb13u2 | ||
debian 14 | 22.22.2+dfsg+~cs22.19.15-1 | ||
alpine v3.22 | 22.22.2-r0 | ||
alpine v3.23 | 24.14.1-r0 | ||
rpm rhel8 | - | - | |
rpm rhel9 | - | - | |
rpm rhel10 | - | - | |
rpm rhel10 | 1:24.14.1-2.el10_1 | ||
alpine v3.24 | 24.14.1-r0 |
1-10 of 11
10
Aliases
References