Node.js is vulnerable to Permission Model file-name disclosure via recursive fs.watch
CVE-2026-123829Published 11 Nov 2026, 18:12 UTC
Real-world risk
0.6/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
2.5
scored by the vendor (CNA), CVSS 3.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from openjs)
A Permission Model bypass in Node.js recursive file watching discloses the names of files and directories the process is not permitted to read. On macOS and Windows, fs.watch() and fs.promises.watch() in recursive mode are backed by the native libuv watcher: FSEventWrap::Start checks kFileSystemRead only once, on the watched root, and FSEventWrap::OnEvent then forwards every filename libuv reports (relative paths at any depth) to the JavaScript callback without checking that each path is covered by the read grant. Code running under --permission with an exact read grant on a directory can therefore learn names such as sub/secret.txt even though readdir on that subdirectory is denied. The flaw exposes names and timing metadata, not file contents, and requires macOS or Windows plus files created under the watched directory by another actor. This vulnerability affects Node.js 26.x, 24.x, and 22.x.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Node.jsUbiquitous | >= 0.0.0, < 22.23.5; >= 23.0.0, < 24.22.3; >= 25.0.0, < 26.13.1 | 22.23.5, 24.22.3, 26.13.1 |
What to do
Update to a fixed version: 22.23.5, 24.22.3, 26.13.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.2% chance of exploitation in 30 days (percentile 6), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.225
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.225 × threat 0.850.574
- Rounded to one decimal between 0.1 and 100.6
Exploitation and evidence timeline
- 11 Nov 2026 Published
- 3 Dec 2026 Risk 0.6 (cvss fallback)
Weakness
CWE-200