JLSEC-2026-1950: A flaw in Node.js Permission Model filesystem enforcement leaves `fs.realpathSync.native()`...

Published Dec 2, 2026
·
Updated

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

5 affected components
julia/nodejs_16_jll*
julia/nodejs_18_jll*
julia/nodejs_20_jll*
julia/nodejs_22_jll*
julia/libnode_jll*

Event History

Dec 2, 2026
Advisory Published
via OSV·03:31 PM
Data Sourced
via OSV·03:31 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203