CVE-2024-21890

nodejs: improper handling of wildcards in --allow-fs-read and --allow-fs-write

Published Feb 20, 2024 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-19501 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.
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00378}

epss

{'score': 0.00681}

Type Values Removed Values Added
First Time appeared Nodejs
Nodejs node.js
Weaknesses NVD-CWE-Other
CPEs cpe:2.3:a:nodejs:node.js:*:*:*:*:*:*:*:*
Vendors & Products Nodejs
Nodejs node.js
Metrics cvssV3_1

{'score': 5.0, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
hackerone
Published
Updated
Apr 30, 2025, 10:25 PM
Reserved
Jan 3, 2024, 1:04 AM
Status
Analyzed
Published
Feb 20, 2024, 2:15 AM
Modified
Jun 17, 2026, 7:10 AM
Severity
Moderate
Public date
Feb 19, 2024, 12:00 AM