Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-104853

MEDIUM 5.8EPSS 6%

Nx: Path traversal in nx migrate package-migrations extraction

Also known as GHSA-hrvq-x7jp-36xv

Mitigation

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

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

Vulnerability facts

Affected
nx >= 13.10.0, < 22.7.10
Fixed in
22.7.10, 23.2.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
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:NOpen in CVSS calculator
Show all 11 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
EPSS
0.20% chance of exploitation in 30 days (percentile 6, 2026-11-26)
CWE
CWE-22, CWE-73
Published
Modified

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

Package / productAffectedFixedSource
npm nx>= 13.10.0, < 22.7.1022.7.10, 23.2.1osv
nrwl nx>= 13.10.0, < 22.7.10; >= 23.0.0, < 23.2.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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-26).

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.

Sponsors