Vulnerability in Node.js Node

CVE-2024-21890

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.

EPSS exploit prediction

EPSS 0.009, 61.6th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

Public exploits and proof-of-concept code

Also mentioned in 4 other repositories (amphib24/nessus_scan_cysa-_book, fkie-cad/nvd-json-data-feeds, Ki1shan/-Basic-Vulnerability-Scan, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References