@nx/workspace is vulnerable to Command Injection
79
CVE Score
High
Command Injection
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.
Upgrade the @nx/workspace library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
16.0.0 - 22.4.4
Fixed in 22.4.5@nx/workspace is vulnerable to Command Injection in versions 16.0.0 - 22.4.4.
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.
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.