Path Traversal Affecting node package, versions [20.0.0,20.11.1)[21.0.0,21.6.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (19th 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 Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UPSTREAM-NODE-6252334
  • published18 Feb 2024
  • disclosed13 Feb 2024
  • creditTobias Nießen

Introduced: 13 Feb 2024

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

How to fix?

Upgrade node to version 20.11.1, 21.6.2 or higher.

Overview

node is a JavaScript runtime built on Chrome's V8 JavaScript engine.

Affected versions of this package are vulnerable to Path Traversal by monkeypatching Buffer.prototype.utf8Write in Buffer.from(), which is invoked by path.resolve() in resolving paths which are treated as buffers.

Note: The vulnerable permission model feature is experimental at the time of this vulnerability's discovery.

CVSS Base Scores

version 3.1