CVE-2026-21715
Last modified
CVE-2026-21715 is a low-severity vulnerability rated 3.3/10 on the CVSS scale. 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.. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Nodejs | Node.Js | <= 20.20.1 |
| Nodejs | Node.Js | >= 22.0.0, <= 22.22.1 |
| Nodejs | Node.Js | >= 24.0.0, <= 24.14.0 |
| Nodejs | Node.Js | >= 25.0.0, <= 25.8.1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-21715?
How severe is CVE-2026-21715?
How do I fix CVE-2026-21715?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-2171A vulnerability was found in code-projects Online Student Ma…9.8
- CVE-2026-21710A flaw in Node.js HTTP request handling causes an uncaught `…7.5
- CVE-2026-21711A flaw in Node.js Permission Model network enforcement leave…5.3
- CVE-2026-21712A flaw in Node.js URL processing causes an assertion failure…6.5
- CVE-2026-21713A flaw in Node.js HMAC verification uses a non-constant-time…5.9
- CVE-2026-21714A memory leak occurs in Node.js HTTP/2 servers when a client…5.3
- CVE-2026-21716An incomplete fix for CVE-2024-36137 leaves `FileHandle.chmo…3.3
- CVE-2026-21717A flaw in V8's string hashing mechanism causes integer-like …5.9
- CVE-2026-21718An authentication bypass vulnerability exists in Copeland XW…9.8
- CVE-2026-21719An OS command injection vulnerability exists in CubeCart pri…8.6
- CVE-2026-2172A vulnerability was determined in code-projects Online Appli…9.8
- CVE-2026-21720Every uncached /avatar/:hash request spawns a goroutine that…7.5
Are you affected by CVE-2026-21715?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
