nx is vulnerable to OS Command Injection
85
High Risk
Nx builds git merge-base, git diff, and git show calls for affected-project detection, plus fetch, checkout, and config calls inside the GitRepository helper used by nx import, as shell command strings that interpolate revision or branch values from nx.json, NX_BASE/NX_HEAD, or a remote repository. Quoting those values does not stop the injection, since POSIX shells still perform command substitution inside double quotes, so a crafted revision or branch name runs as an arbitrary command with the privileges of the user running nx. The fix replaces these shell-string invocations with argument-array git calls.
You are affected if you are using a version that falls within the vulnerable range and you run Nx's affected-project detection or nx import against a repository or remote branch you do not fully trust.
nx is vulnerable to OS Command Injection in versions 14.0.0 - 22.7.7 and 23.0.0 - 23.1.0.
Upgrade the nx library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.