Skip to content

Node.js

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?

ProductAffected 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.122.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

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionLocalMust already run code or have a shell on the machineFrom the CVSS vector0.50
Privileges neededLowA real low-privileged accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.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
  1. Prerequisites multiplied together0.225
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.225 × threat 0.850.574
  4. Rounded to one decimal between 0.1 and 100.6

How the score works

Exploitation and evidence timeline

  1. 11 Nov 2026 Published
  2. 3 Dec 2026 Risk 0.6 (cvss fallback)

Weakness

CWE-200

References

Get alerts for Node.js

Free email or text alerts when a vulnerability in Node.js reaches risk 8 or higher. Nothing else.