Directory Traversal Affecting nodejs20-npm package, versions <1:10.2.4-1.20.11.1.1.amzn2023.0.1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.05% (18th 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 IDSNYK-AMZN2023-NODEJS20NPM-6393605
  • published6 Mar 2024
  • disclosed20 Feb 2024

Introduced: 20 Feb 2024

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

How to fix?

Upgrade Amazon-Linux:2023 nodejs20-npm to version 1:10.2.4-1.20.11.1.1.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2024-544.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs20-npm package and not the nodejs20-npm package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 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