Directory Traversal Affecting nodejs-packaging-bundler package, versions <0:2021.06-4.module+el8.9.0+19519+e25b965a


Severity

Recommended
0.0
high
0
10

Based on CentOS 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 Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CENTOS8-NODEJSPACKAGINGBUNDLER-6272343
  • published24 Feb 2024
  • disclosed19 Feb 2024

Introduced: 19 Feb 2024

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

How to fix?

Upgrade Centos:8 nodejs-packaging-bundler to version 0:2021.06-4.module+el8.9.0+19519+e25b965a or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs-packaging-bundler package and not the nodejs-packaging-bundler package as distributed by Centos. See How to fix? for Centos:8 relevant fixed versions and status.

The permission model protects itself against path traversal attacks by calling path.resolve() on any paths given by the user. If the path is to be treated as a Buffer, the implementation uses Buffer.from() to obtain a Buffer from the result of path.resolve(). By monkey-patching Buffer internals, namely, Buffer.prototype.utf8Write, the application can modify the result of path.resolve(), which leads to a path traversal vulnerability. 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