Malicious Code Injection in @angularr/cli: A Critical Security Threat
Summary
MAL-2026-17492: Malicious code in @angularr/cli (npm). Affects @angularr/cli versions 22.2.1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The package @angularr/cli is a malicious npm package that impersonates the official Angular CLI. It is designed to mislead users by copying the description, keywords, and other metadata from the legitimate @angular/cli package. This package is particularly dangerous as it executes arbitrary code during installation, posing a significant risk to users' systems.
Vulnerability Detail
The vulnerability stems from the malicious code embedded in the @angularr/cli package, which includes a preinstall lifecycle hook that fetches and executes a remote JavaScript file from an untrusted source. This file is hosted on gitflic.ru and is executed directly by the Node.js process during the installation of the package. The lack of integrity checks and the unpinned nature of the script allow for arbitrary code execution, potentially compromising the user's system and data.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @angularr/cli
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, avoid using the @angularr/cli package entirely. Instead, use the official Angular CLI package, which can be installed with the command: npm install @angular/cli. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities.
Conclusion
The @angularr/cli package poses a significant security threat due to its malicious code execution capabilities. Users must take immediate action to remove this package and replace it with the official Angular CLI to safeguard their systems. Regular monitoring for vulnerabilities using tools like Vulert is recommended to maintain security.
See every vulnerability recorded for @angularr/cli →
FAQ
The @angularr/cli package is a malicious npm package that impersonates the official Angular CLI, designed to execute harmful code on installation.
The malicious code executes through a preinstall lifecycle hook that fetches a remote JavaScript file and runs it using Node.js during the installation process.
The risks include arbitrary code execution on the user's system, which can lead to data theft, system compromise, and other malicious activities.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Immediately uninstall the @angularr/cli package using npm uninstall @angularr/cli and install the legitimate Angular CLI package with npm install @angular/cli.