CVE-2024-21891
nodejs: multiple permission model bypasses due to improper path traversal sequence sanitization
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · February 19, 2024
Updated · November 21, 2025
Description
A flaw was found in Node.js. Node.js depends on multiple built-in utility functions to normalize paths provided to node:fs functions, which can be overwritten with user-defined implementations, leading to a filesystem permission model bypass through a path traversal attack.
Statement
It is a path-traversal / filesystem permission bypass vulnerability in Node.js, specifically related to the experimental permission model in versions 20 and 21, however, the “permission model” feature is experimental (i.e., not default) in Node.js 20/21 at the time of disclosure, which is why this has been marked as moderate by Redhat
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 · 6.6CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')