Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-21715: Vulnerability in nodejs node

0
Low
VulnerabilityCVE-2026-21715cvecve-2026-21715
Published: Mon Mar 30 2026 (03/30/2026, 19:07:28 UTC)
Source: CVE Database V5
Vendor/Project: nodejs
Product: node

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/07/2026, 09:43:00 UTC

Technical Analysis

This vulnerability in Node.js stems from improper enforcement of the permission model on the fs.realpathSync.native() function. While other filesystem functions correctly enforce read permission restrictions under the --permission flag with limited --allow-fs-read, fs.realpathSync.native() does not. This allows processes running with restricted filesystem read permissions to access information about files and directories outside their permitted scope by checking file existence, resolving symbolic links, and enumerating paths. Affected versions include Node.js 20.x, 22.x, 24.x, 25.x, and earlier major versions. The CVSS 3.0 vector indicates the attack requires local access with low complexity and privileges, does not require user interaction, and impacts confidentiality with no integrity or availability impact.

Potential Impact

The vulnerability allows limited unauthorized information disclosure by bypassing intended filesystem read restrictions. Specifically, it enables code with restricted filesystem read permissions to determine file existence, resolve symlinks, and enumerate filesystem paths outside the allowed directories. This could lead to exposure of filesystem structure or presence of sensitive files but does not allow modification or denial of service. The CVSS score of 3.3 and low severity rating reflect this limited confidentiality impact. There are no known exploits in the wild.

Mitigation Recommendations

Patch status is not yet confirmed — check the official Node.js vendor advisory for current remediation guidance. Until a fix is available, avoid running untrusted code with restricted --allow-fs-read permissions relying on fs.realpathSync.native() for security enforcement. Consider using alternative filesystem functions that correctly enforce permission checks or implement additional access controls at the application level. Monitor Node.js security channels for updates regarding patches or official fixes.

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

Technical Details

Data Version
5.2
Assigner Short Name
hackerone
Date Reserved
2026-01-04T15:00:06.574Z
Cvss Version
3.0
State
PUBLISHED

Threat ID: 69cacda7e6bfc5ba1d6188ae

Added to database: 3/30/2026, 7:23:19 PM

Last enriched: 4/7/2026, 9:43:00 AM

Last updated: 5/15/2026, 2:55:41 AM

Views: 64

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