CVE-2025-23084 Path traversal in Node
Node.js mishandles Windows drive names in path.join, allowing attackers to access root directories instead of relative paths.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-23084?
CVE-2025-23084 is a medium-severity path traversal vulnerability in Nodejs Node.js, published on 28 Jan 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
A vulnerability has been identified in Node.js, specifically affecting the handling of drive names in the Windows environment. Certain Node.js functions do not treat drive names as special on Windows. As a result, although Node.js assumes a relative path, it actually refers to the root directory. On Windows, a path that does not start with the file separator is treated as relative to the current directory. This vulnerability affects Windows users of `path.join` API.
Weakness: CWE-22
Which versions are affected by CVE-2025-23084?
2 open source packages ship an affected version, including node and node-min. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
node Bitnami | All versions | 18.20.6, 20.18.2, 22.13.1, 23.8.0 |
node-min Bitnami | All versions | 18.20.6, 20.18.2, 22.13.1, 23.8.0 |
Products include Nodejs Node.js.
How do I fix CVE-2025-23084?
Upgrade node to a fixed version for your release line: 18.20.6, 20.18.2, 22.13.1 or 23.8.0.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-23084 being exploited?
There is no known exploitation of CVE-2025-23084 in the wild and no public exploit code.
Other vulnerabilities in Nodejs Node.js
Sources
Also known as ALPINE-CVE-2025-23084, BIT-node-2025-23084, BIT-node-min-2025-23084, GHSA-37v4-cwgp-x353, MINI-6hrr-wcqg-3rxq, MINI-7m2g-ph5q-w459 and 3 more.