CVE-2024-21890
- State
- Published
- Severity
- 5.0 Medium
- Published
- Feb 20, 2024
- Updated
- Apr 30, 2025
- Reserved
- Jan 3, 2024
Description
The Node.js Permission Model does not clarify in the documentation that wildcards should be only used as the last character of a file path. For example: ``` --allow-fs-read=/home/node/.ssh/*.pub ```
will ignore `pub` and give access to everything after `.ssh/`.
This misleading documentation 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 | 5.0 Medium | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | hackerone |
Weaknesses
The record names no weakness.
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.