Skip to content
Low 2.5

Node.js is vulnerable to Permission Model file-name disclosure via recursive fs.watch

CVE-2026-123829 First seen on SecPulse

Affected packages

PackageAffected → Fixed
nodejsnode
≥ 0.0.0, < 22.23.5→ 22.23.5
≥ 23.0.0, < 24.22.3→ 24.22.3
≥ 25.0.0, < 26.13.1→ 26.13.1
Bitnaminode-min
< 22.23.5→ 22.23.5
≥ 23.0.0, < 24.22.3→ 24.22.3
≥ 25.0.0, < 26.13.1→ 26.13.1
Bitnaminode
< 22.23.5→ 22.23.5
≥ 23.0.0, < 24.22.3→ 24.22.3
≥ 25.0.0, < 26.13.1→ 26.13.1

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: Node.js Security Releases NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details