CVE Database›CVE-2024-21890

CVE-2024-21890

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

Loading…

Severity

Moderate

Red Hat Product Security

5

CVSS 3.1

Review impact separately from score.

Published · February 19, 2024

Updated · November 21, 2025

Description

A flaw was found in the Node.js Permission Model, where it is not clarified in the documentation that wildcards should only be 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/.

Statement

This misleading documentation affects all users using the experimental permission model in active release lines 20.x and 21.x.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CWE-1059 · Insufficient Technical Documentation