Intel

AIKIDO-2026-10163

@nx/workspace is vulnerable to Command Injection

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Feb 12, 2026
February 12, 2026

79

CVE Score

High

Command Injection

Are you affected? Scan for Free

TL;DR

Affected versions of this package allow OS command injection because user-controlled input flows unsanitized into execSync via string interpolation when resolving npm package versions. An attacker can supply a crafted --preset value containing shell metacharacters to execute arbitrary commands on the host during create-nx-workspace. It can lead to full compromise of the developer machine or CI runner (RCE), including data exfiltration or malware installation. The issue arises from using shell command concatenation instead of validating input and invoking commands with argument arrays.

How do I fix this?

Upgrade the @nx/workspace library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

16.0.0 - 22.4.4

Fixed in 22.4.5

Background info

@nx/workspace is vulnerable to Command Injection in versions 16.0.0 - 22.4.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea