Malicious Code Injection in @angulra/core Package
Summary
MAL-2026-17496: Malicious code in @angulra/core (npm). Affects @angulra/core versions 1.0.67. 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 @angulra/core package is an npm library that appears to be a malicious typosquat, mimicking legitimate packages in the Angular ecosystem. It is designed to lure unsuspecting developers into installing it, potentially leading to the execution of arbitrary code on their systems. The package claims to provide 'Core Libs' but includes dependencies that do not align with its stated purpose.
Vulnerability Detail
The vulnerability arises from a malicious preinstall script in the package.json file that executes a curl command to fetch and run JavaScript from an untrusted third-party source (gitflic.ru). This script runs during the npm install process, allowing attackers to execute arbitrary code with the privileges of the user installing the package. The lack of integrity checks and the mutable nature of the source make this a significant security risk.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @angulra/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 workaround, avoid using the @angulra/core package altogether. If you need similar functionality, look for established and well-reviewed alternatives in the npm registry.
Conclusion
The @angulra/core package poses a serious security threat due to its malicious code execution capabilities. It is crucial to avoid using this package and to monitor your projects for vulnerabilities using tools like Vulert. Always prioritize security by verifying the integrity of third-party packages.
See every vulnerability recorded for @angulra/core →
FAQ
It is an npm package that appears to be a malicious typosquat, designed to mimic legitimate Angular packages.
The vulnerability allows the execution of arbitrary code during the installation process due to a malicious preinstall script that fetches code from an untrusted source.
Using this package can lead to unauthorized code execution, potentially compromising your system and data.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities without needing to sign up.