Critical Malicious Code Vulnerability in @aryanhussain/my-angular-lib Package
Summary
MAL-2025-190713: Malicious code in @aryanhussain/my-angular-lib (npm). Affects @aryanhussain/my-angular-lib versions 0.0.23. 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 @aryanhussain/my-angular-lib package is a JavaScript library designed for Angular applications, providing various functionalities to enhance development. However, this package has been identified as containing malicious code, posing significant risks to any system where it is installed. Users of this library should be aware of its potential to compromise sensitive data and system integrity.
Vulnerability Detail
The vulnerability originates from the presence of embedded malicious code within the @aryanhussain/my-angular-lib package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The ramifications include potential data breaches and loss of control over the affected systems. It is classified under CWE-506, indicating that the product contains code that appears to be malicious in nature.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @aryanhussain/my-angular-lib
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, ensure that the package is uninstalled using the command: npm uninstall @aryanhussain/my-angular-lib. Additionally, monitor your systems for any unusual activity and consider using security tools to scan for residual malicious software.
Conclusion
The discovery of malicious code in the @aryanhussain/my-angular-lib package poses a serious threat to users. Immediate action is required to mitigate risks, including uninstalling the package and securing sensitive information. Continuous monitoring and using tools like Vulert can help in identifying vulnerabilities in the future.
See every vulnerability recorded for @aryanhussain/my-angular-lib →
FAQ
Immediately uninstall the package and rotate any sensitive information stored on the affected system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
Currently, there is no patched version available, so the best course of action is to remove the package entirely.
Failing to address this vulnerability can lead to unauthorized access to sensitive data and potential control over your systems by malicious actors.
It is advisable to conduct thorough reviews and audits of any packages from the same author before using them, especially after discovering a serious vulnerability.