CVE-2024-21891
- State
- Published
- Severity
- 7.9 High
- Published
- Feb 20, 2024
- Updated
- Apr 30, 2025
- Reserved
- Jan 3, 2024
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.0 | 7.9 High | CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N | hackerone |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Products
| Product | Versions |
|---|---|
NodeNodeJS |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.