Critical Malicious Code Vulnerability in @alexadark/reusable-functions Package
Summary
MAL-2025-191184: Malicious code in @alexadark/reusable-functions (npm). Affects @alexadark/reusable-functions versions 1.5.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 @alexadark/reusable-functions package is an npm library designed to provide reusable functions for JavaScript applications. It is commonly used by developers to streamline their coding processes. However, this package has been compromised, leading to severe security risks for any system that has it installed.
Vulnerability Detail
The vulnerability originates from a malicious payload introduced by the Sha1-Hulud: The Second Coming NPM worm. This worm is capable of stealing tokens and credentials, publishing them to GitHub, and propagating itself to other npm packages owned by the user. It also has the potential to destroy the user's home directory, making it a critical threat to system integrity and data security.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @alexadark/reusable-functions
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
Currently, there are no effective workarounds to mitigate the risks posed by this vulnerability other than removing the package and securing your environment.
Conclusion
The @alexadark/reusable-functions package has been compromised, leading to significant security risks. It is crucial to uninstall the package immediately and secure your environment to prevent unauthorized access and data loss.
See every vulnerability recorded for @alexadark/reusable-functions →
FAQ
Immediately uninstall the package using 'npm uninstall @alexadark/reusable-functions' and rotate any credentials or tokens stored on the affected system.
The malicious code can steal sensitive information, propagate itself to other packages, and potentially destroy files in your home directory.
No, there is currently no patched version available for the @alexadark/reusable-functions package. The only solution is to remove it.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check your application for vulnerabilities without signup at the Vulert playground.
If not addressed, this vulnerability can lead to unauthorized access to sensitive data, loss of control over your applications, and potential damage to your system.