Malicious Code Vulnerability in @anguar/core Package
Summary
MAL-2026-17535: Malicious code in @anguar/core (npm). Affects @anguar/core 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 @anguar/core package is a malicious npm package that impersonates the legitimate @angular/core package. It is designed to trick developers into installing it by using a name that is almost identical to the original package. This package is intended for building web applications and is widely used in the JavaScript ecosystem. However, due to its malicious nature, it poses significant security risks to developers who may inadvertently install it.
Vulnerability Detail
The vulnerability originates from the @anguar/core package, which contains a postinstall lifecycle hook that executes a command to download and run malicious JavaScript code from an untrusted source. This code is fetched from a URL controlled by a third party, which can lead to arbitrary code execution on the developer's machine. The risk is particularly high for developers who mistype the package name and install this malicious version instead of the legitimate one.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @anguar/core
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, ensure that you always double-check the package names before installation. You can also use package-lock.json to monitor dependencies and avoid installing untrusted packages.
Conclusion
The @anguar/core package poses a significant security threat due to its malicious code execution capabilities. Developers must be vigilant in verifying package names and utilizing tools like Vulert to monitor for vulnerabilities. Always ensure you are using trusted packages to maintain a secure development environment.
See every vulnerability recorded for @anguar/core →
FAQ
The @anguar/core package is a malicious npm package that impersonates the legitimate @angular/core package, designed to execute harmful code on installation.
You can check your project's package.json or package-lock.json files for the presence of @anguar/core. If found, it should be removed immediately.
Using the @anguar/core package can lead to arbitrary code execution on your machine, potentially compromising your development environment and data.
There is no patch for the @anguar/core package since it is a malicious package. The only solution is to uninstall it and use the legitimate @angular/core package.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can also check your application for vulnerabilities using the Vulert playground without signing up.