Skip to main content
EPSS 0.2%top 95%

A flaw in Node.js Permission Model filesystem enforcement leaves fs.realpathSync.native() without the required read permission checks, while all… (CVE-2026-21715)

0
Low
Published: 04/06/2026 (04/06/2026, 07:58:41 UTC)
Source: GCVE Database
Product: node

Description

A vulnerability in Node.js Permission Model filesystem enforcement allows the function fs.realpathSync.native() to bypass required read permission checks. This flaw affects Node.js versions 20.x, 22.x, 24.x, and 25.x when running with restricted --allow-fs-read permissions. Exploiting this issue, code can check file existence, resolve symlink targets, and enumerate filesystem paths outside permitted directories despite restrictions. The vulnerability has a low severity rating and no known exploits in the wild. Patches are available for affected versions.

Affected software

Bitnamimore threats →ghsa
node
pkg:bitnami/node
Affected versions
<20.20.2>=21.0.0 <22.22.2>=23.0.0 <24.14.1>=25.0.0 <25.8.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 13:35:46 UTC

Technical Analysis

Node.js contains a flaw in its Permission Model where the filesystem function fs.realpathSync.native() does not enforce read permission checks as required. While other comparable filesystem functions correctly enforce these checks, this function can be used to bypass restrictions imposed by the --permission flag with limited --allow-fs-read access. This allows code running under these restricted permissions to access filesystem information beyond the intended scope, including checking file existence, resolving symbolic links, and enumerating paths outside allowed directories. The issue affects Node.js versions prior to 20.20.2, versions from 21.0.0 up to but not including 22.22.2, versions from 23.0.0 up to but not including 24.14.1, and versions from 25.0.0 up to but not including 25.8.2. A patch is available to address this vulnerability.

Potential Impact

The impact is limited to bypassing read permission restrictions in the Node.js Permission Model. Attackers or code running with restricted filesystem read permissions can use fs.realpathSync.native() to access filesystem metadata and paths outside the permitted scope. This could lead to information disclosure about the filesystem structure and existence of files or symlinks that should be inaccessible under the configured permissions. There are no known exploits in the wild, and the severity is assessed as low.

Mitigation Recommendations

A patch is available for this vulnerability. Users should upgrade Node.js to versions 20.20.2 or later, 22.22.2 or later, 24.14.1 or later, or 25.8.2 or later to ensure the issue is fixed. Until patched, avoid relying solely on the Permission Model's --allow-fs-read restrictions for security, as fs.realpathSync.native() can bypass these controls.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BIT-node-2026-21715
Osv Schema Version
1.6.2
Aliases
["CVE-2026-21715"]
Ecosystems
["Bitnami"]
Database Specific Severity
Low

Threat ID: 6aa005faacd9273b49ab6881

Added to database: 09/08/2026, 12:56:26 UTC

Last enriched: 09/08/2026, 13:35:46 UTC

Last updated: 09/10/2026, 19:36:52 UTC

Views: 30

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses