# CVE-2025-27210: Path traversal in node

> Incomplete fix for Windows device name handling in Node.js path.join allows attackers to bypass path restrictions and access or modify files.

- **Severity:** High 7.5 (`CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 18 Jul 2025
- **Updated:** 4 Nov 2025
- **Also known as:** BIT-node-2025-27210, BIT-node-min-2025-27210, GHSA-x33r-pvvq-wjrh, MINI-486q-m78q-mfxg, MINI-crrj-58q2-4qp4, MINI-h3hv-7pgm-vjcx, MINI-rhpg-q8r5-frgq, MINI-vqg7-pxvw-j95g

## What is CVE-2025-27210?

CVE-2025-27210 is a high-severity path traversal vulnerability in nodejs node, published on 18 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An incomplete fix has been identified for CVE-2025-23084 in Node.js, specifically affecting Windows device names like CON, PRN, and AUX. 

This vulnerability affects Windows users of `path.join` API.

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2025-27210?

2 open source packages ship an affected version, including node and node-min.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `node` | Bitnami | From 4.0.0 | 20.19.4, 22.17.1, 24.4.1 |
| `node-min` | Bitnami | From 4.0.0 | 20.19.4, 22.17.1, 24.4.1 |

## How do I fix CVE-2025-27210?

Upgrade node to a fixed version for your release line: 20.19.4, 22.17.1 or 24.4.1.

## Is CVE-2025-27210 being exploited?

There is no known exploitation of CVE-2025-27210 in the wild and no public exploit code.

Public exploit code:

- (PoC) CVE-2025-27210, a precise Path Traversal vulnerability affecting Node.js applications running on Microsoft Windows. This vulnerability leverages the specific way Windows handles reserved device file names  (github_poc): https://github.com/absholi7ly/CVE-2025-27210_NodeJS_Path_Traversal_Exploit
- NodeJS 24.x - Path Traversal (exploitdb)
- 2 web apps vulnerable to CVE-2025-27210 (github_poc): https://github.com/mindeddu/Vulnerable-CVE-2025-27210

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-27210 and fix it if it is affected.

What it is: CVE-2025-27210 is a high-severity path traversal vulnerability in nodejs node, published on 18 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-27210 in the wild and no public exploit code.

Affected packages and fixed versions:
- node (Bitnami): affected from 4.0.0; fixed in 20.19.4, 22.17.1, 24.4.1
- node-min (Bitnami): affected from 4.0.0; fixed in 20.19.4, 22.17.1, 24.4.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-27210/ (Markdown: https://insights.sbomify.com/CVE-2025-27210/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-27210
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-27210
- OSV: https://osv.dev/vulnerability/CVE-2025-27210

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-27210/
Summaries are generated and may contain mistakes; the official description above is the record.
