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

CVE-2026-123829
LOW 2.5

En bref

Source
NVD
EPSS
EPSS 0.17 % · centile 6 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
openjs
Produits affectés
nodejs · node
Statut NVD
Awaiting Analysis

Description

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.

Faiblesses (CWE)

  • CWE-200 — Exposition d'informations sensibles à un acteur non autorisé

Crédits

  • Trail of Bits (OpenAI) signalement
  • RafaelGSS développement du correctif
  • UlisesGascon relecture du correctif
  • aduh95 coordination

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.0LOW 2.5CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:Nopenjs
CVSS 3.0LOW 2.5CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:NNVD · ce714d77-add3-4f53-aff5-83d477b104bb (Secondary)

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions affectées
nodejs · node
affectée : ≥ 0.0.0 < 22.23.5
affectée : ≥ 23.0.0 < 24.22.3
affectée : ≥ 25.0.0 < 26.13.1
Autres versions : non affectée

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD