JLSEC-2026-1950: A flaw in Node.js Permission Model filesystem enforcement leaves `fs.realpathSync.native()`...
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.
Affected Software
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are affected?
Affected deployments are Node.js 20.x, 22.x, 24.x, and 25.x processes that use the Permission Model and intentionally restrict filesystem reads with --allow-fs-read.
Is a process affected if it does not use the Permission Model?
The issue is described only for processes running under --permission with restricted --allow-fs-read. Processes outside that configuration are not identified as affected.
What would an attacker need to exploit this?
An attacker would need code to run inside the affected Node.js process. That code can invoke fs.realpathSync.native() despite the process's intended filesystem read restrictions.
What information can be exposed through this flaw?
Code can check whether files exist, resolve symlink targets, and enumerate filesystem paths outside the directories permitted by --allow-fs-read. The stated impact is limited to filesystem path and existence information; integrity and availability are not affected.