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

CVE-2026-123829
LOW 2.5

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 6 ()
State
PUBLISHED
Published
Updated
Assigner
openjs
Affected products
nodejs · node
NVD status
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.

Weaknesses (CWE)

  • CWE-200 — Exposure of Sensitive Information to an Unauthorized Actor

Credits

  • Trail of Bits (OpenAI) reporter
  • RafaelGSS remediation developer
  • UlisesGascon remediation reviewer
  • aduh95 coordinator

References

Scores

VersionScoreVectorScored by
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)

European references

CERT-FR advisories

Affected products

ProductAffected versions
nodejs · node
affected : ≥ 0.0.0 < 22.23.5
affected : ≥ 23.0.0 < 24.22.3
affected : ≥ 25.0.0 < 26.13.1
Other versions : unaffected

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