@nrwl/nx
- >= 20.9.0, <= 21.8.0
- >= 20.10.0, <= 20.10.0
- >= 20.11.0, <= 20.11.0
- >= 20.12.0, <= 20.12.0
- >= 21.5.0, <= 21.5.0
- >= 21.6.0, <= 21.6.0
- >= 21.7.0, <= 21.7.0
This vulnerability is being actively exploited in the wild.
A supply chain attack has compromised the Nx build system package and several related plugins, including @nx/devkit, @nx/enterprise-cloud, @nx/eslint, @nx/js, @nx/key, @nx/node, and @nx/workspace. Malicious versions of these packages were published to the npm registry, containing a post-installation script that scanned the file system for sensitive information such as GitHub and npm tokens, SSH keys, and cryptocurrency wallet data. This stolen information was then uploaded to GitHub repositories created under the user's account.
The vulnerability led to the unauthorized collection and exfiltration of sensitive data, including GitHub and npm tokens, SSH keys, and cryptocurrency wallet information, which was uploaded to GitHub repositories created by the attacker.
The vulnerability can be reproduced by installing the compromised versions of the Nx package or its related plugins. The malicious code is triggered during the post-installation phase, executing a script that collects sensitive information and uploads it to a GitHub repository.
Users should immediately uninstall the compromised versions of Nx and its related packages, clear the npm cache, and remove any malicious entries from the shell configuration files. Afterward, they can reinstall the packages from a safe version. Additionally, it's crucial to rotate any exposed credentials, such as GitHub and npm tokens, SSH keys, and cryptocurrency wallet information.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.