Path Traversal in Node.js Node
CVE-2024-21891
Node.js depends on multiple built-in utility functions to normalize paths provided to node:fs functions, which can be overwitten with user-defined implementations leading to filesystem permission model bypass through path traversal attack. This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 21. Please note that at the time this CVE was issued, the permission model is an experimental feature of Node.js.
Vulnerability class: Path Traversal (Directory Traversal)
EPSS: 0.012 (67.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Nodejs Node — versions 4.0, 5.0, 6.0
- Nodejs Node.js
Weakness classification (CWE)
Public proof-of-concept exploits
References
- support@hackerone.com (Third Party Advisory, Issue Tracking)
- support@hackerone.com (Third Party Advisory)
- support@hackerone.com (Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2024-21891?
- CVE-2024-21891 is a high-severity vulnerability in Node.js Node, classified under Path Traversal. CVSS score: 8.8/10. Published 2024-02-20.
- How severe is CVE-2024-21891?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2024-21891 known to be exploited?
- 7 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.