Malicious Code Detected in baileys-cleaner: Data Exfiltration Risk
Summary
MAL-2025-5804: Malicious code in baileys-cleaner (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 'baileys-cleaner' package is an npm library designed for cleaning and managing data within applications. It is often used in projects that require data sanitization and organization. However, this package has been found to communicate with domains associated with malicious activities, posing a significant security risk to users.
Vulnerability Detail
The vulnerability in 'baileys-cleaner' arises from its communication with a domain linked to malicious activities. Specifically, it archives sensitive data from '/home/container' and exfiltrates this information to 'catbox.moe' and Firebase, which may include users' IP addresses. This behavior can lead to unauthorized access to sensitive information, data breaches, and potential exploitation of user data.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall baileys-cleaner
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, consider removing the 'baileys-cleaner' package from your project until a secure version is released. You can uninstall it using the following command: 'npm uninstall baileys-cleaner'. Additionally, monitor your application for any suspicious activity.
Conclusion
The 'baileys-cleaner' package has a significant vulnerability that can lead to data exfiltration and potential breaches. It is crucial to update the package or remove it from your project until a secure version is available. Regular monitoring and using tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for baileys-cleaner →
FAQ
The 'baileys-cleaner' package is used for cleaning and managing data within applications, helping developers maintain organized and sanitized data.
The vulnerability allows the package to exfiltrate sensitive data, including IP addresses, to malicious domains, potentially leading to data breaches.
Check the package repository for any updates or patches. If available, updating the package to the latest version is recommended.
Consider uninstalling the package as a temporary measure and monitor your application for any unusual activity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.