Directory Traversal Affecting nodejs:20/nodejs package, versions <1:20.11.1-1.module_el9.3.0+88+29afeaa2


Severity

Recommended
0.0
high
0
10

Based on AlmaLinux security rating.

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.08% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ALMALINUX9-NODEJS-6595434
  • published10 Apr 2024
  • disclosed8 Apr 2024

Introduced: 8 Apr 2024

CVE-2024-21891  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade AlmaLinux:9 nodejs:20/nodejs to version 1:20.11.1-1.module_el9.3.0+88+29afeaa2 or higher.
This issue was patched in ALSA-2024:1688.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs:20/nodejs package and not the nodejs:20/nodejs package as distributed by AlmaLinux. See How to fix? for AlmaLinux:9 relevant fixed versions and status.

Node.js depends on multiple built-in utility functions to normalize paths provided to node:fs functions, which can be overwitten with user-defined implementations leading to filesystem permission model bypass through path traversal attack. This vulnerability 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.

CVSS Scores

version 3.1