Malicious Code Detected in erlstats Package - Immediate Action Required
Summary
MAL-2025-19785: Malicious code in erlstats (npm). Affected versions are not published. 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 erlstats package is an npm library designed for tracking and analyzing Erlang statistics. It is utilized by developers to monitor performance metrics and gather insights into Erlang applications. However, the package has been compromised, leading to the introduction of malicious code that poses significant risks to users and their applications.
Vulnerability Detail
The vulnerability in the erlstats package stems from the inclusion of malicious code that can execute harmful actions on the user's system. This code may lead to unauthorized access, data breaches, or system compromise. The issue was identified in the initial release of the package, making all versions vulnerable. Users who have integrated this package into their applications are at risk of exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall erlstats
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 measure, consider using alternative packages that provide similar functionality without the associated risks. Review your project's dependencies and replace erlstats with a trusted library that meets your requirements.
Conclusion
The erlstats package has been found to contain malicious code, posing significant risks to users. Immediate action is required to remove the package and consider alternatives. Regular monitoring and updates are essential to safeguard against such vulnerabilities in the future.
See every vulnerability recorded for erlstats →
FAQ
The erlstats package is used for tracking and analyzing Erlang statistics, helping developers monitor performance metrics.
The malicious code was introduced in the initial release of the erlstats package, affecting all versions.
Using the compromised package can lead to unauthorized access, data breaches, and system compromise.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.