Malicious Code Injection in @angularr/cli: A Critical Security Threat

@angularr/cli Updated 05 Oct 2026

Summary

04/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17492: Malicious code in @angularr/cli (npm). Affects @angularr/cli versions 22.2.1. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback