# CVE-2026-104853: Nx: Path traversal in nx migrate package-migrations extraction

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.8
- **CVSS:** 5.8 (v4.0, CNA) `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Passive; Confidentiality impact: Low; Integrity impact: High; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-28)
- **CWE:** CWE-22, CWE-73
- **Aliases:** GHSA-hrvq-x7jp-36xv
- **Published:** 2026-10-02T16:52:07.624Z
- **Modified:** 2026-10-05T23:45:08.231Z

## Who should check

- Projects that depend on npm package nx (\>= 13.10.0, \< 22.7.10)
- Anyone running nrwl nx \>= 13.10.0, \< 22.7.10; \>= 23.0.0, \< 23.2.1

## Description

Nx is a monorepo solution for TypeScript and polyglot codebases. From 13.10.0 until 22.7.10 and 23.2.1, Nx migration planning reads the nx-migrations.migrations value from a target package manifest without validating that it is a contained relative path. A hostile direct dependency or a package introduced through a trusted package's packageGroup can supply .. segments or an absolute path, causing nx migrate to join an escaping destination onto its temporary directory. The migration archive can then write attacker-controlled bytes outside the temporary directory, while opening the destination stream can truncate an existing writable file even when no archive entry matches. This occurs during migration planning before review of the migration list or use of --run-migrations; the vulnerable installed Nx copy is reached when the normal nx@latest handoff is bypassed with NX\_USE\_LOCAL, NX\_MIGRATE\_USE\_LOCAL, NX\_MIGRATE\_CLI\_VERSION, --run-id, or fallback after a temporary-install failure. This issue is fixed in versions 22.7.10 and 23.2.1.

## Affected and fixed versions

- npm `nx`: affected \>= 13.10.0, \< 22.7.10; fixed 22.7.10, 23.2.1 (osv)
- nrwl nx: \>= 13.10.0, \< 22.7.10; \>= 23.0.0, \< 23.2.1 (cvelist)

## Mitigation

- Upgrade nx to one of 22.7.10, 23.2.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-104853. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-104853.md
Affected: nx >= 13.10.0, < 22.7.10
Fixed in: 22.7.10, 23.2.1

Steps:
1. Search this machine and project for nx (npm), nrwl nx: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-104853 being exploited?

There is no confirmed exploitation: CVE-2026-104853 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-104853?

Medium: CVSS 5.8 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-104853?

nx \>= 13.10.0, \< 22.7.10.

### Is there a fix for CVE-2026-104853?

Yes. Fixed in 22.7.10, 23.2.1. Upgrade nx to one of 22.7.10, 23.2.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-104853?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/nrwl/nx/security/advisories/GHSA-hrvq-x7jp-36xv>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-104853>
- patch: <https://github.com/nrwl/nx/pull/36887>
- patch: <https://github.com/nrwl/nx/commit/38cd82a0c05e8212e538bdb87ccb198d6504e58f>
- patch: <https://github.com/nrwl/nx/commit/95474ab457e8e1dbdbefad29040c166105a8fb90>
- patch: <https://github.com/nrwl/nx/commit/de37c5ebd1852fac700d70726326236ac398af3f>
- other: <https://github.com/nrwl/nx/releases/tag/22.7.10>
- other: <https://github.com/nrwl/nx/releases/tag/23.2.1>
- other: <https://github.com/nrwl/nx>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-104853>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hrvq-x7jp-36xv> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-104853> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-104853>
