Intel

AIKIDO-2026-42325

nx is vulnerable to Path Traversal

Path TraversalGHSA-hrvq-x7jp-36xv Published Yesterday

58

Medium Risk

This Affects:

JSnx
13.10.0 - 22.7.9
Fixed in 22.7.10
23.0.0 - 23.2.0
Fixed in 23.2.1
Are you affected? Scan for Free

TL;DR

nx migrate extracts a target package's migrations file to a destination built by joining the package's nx-migrations.migrations manifest value onto a temporary directory, and that value is read without validation. The matching logic normalizes .. segments while the write path keeps them, so a crafted manifest value can truncate an existing file the running user can access or write attacker-controlled tarball content outside the temporary directory. The fix validates that the migrations path stays inside the temporary directory before extraction.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run nx migrate against a package manifest you do not fully trust.

Background info

nx is vulnerable to Path Traversal in versions 13.10.0 - 22.7.9 and 23.0.0 - 23.2.0.

How to fix this

Upgrade the nx library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform