Critical Malicious Code Vulnerability in supun-baileys Package
Summary
MAL-2026-675: Malicious code in supun-baileys (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 supun-baileys package is an npm library that is utilized in various JavaScript applications for specific functionalities. However, it has been identified to contain malicious code, posing a significant security risk to any system where it is installed. This vulnerability can lead to unauthorized access and control over the affected systems, making it crucial for developers to be aware of its implications.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the supun-baileys package. This code can compromise any computer that has the package installed, allowing attackers to gain full control over the system. The ramifications include potential data breaches, unauthorized access to sensitive information, and the installation of additional malicious software. The technical aspect of this vulnerability is classified under CWE-506, which indicates that the product contains embedded malicious code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall supun-baileys
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 all secrets and keys stored on the affected computer are rotated immediately from a different, secure computer. This step is crucial as the malicious code may have compromised sensitive information.
Conclusion
The supun-baileys package has been identified as containing malicious code, posing severe risks to any system where it is installed. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for supun-baileys →
FAQ
The supun-baileys package is an npm library used in JavaScript applications, but it has been found to contain malicious code.
If you have the supun-baileys package installed, your system may be compromised. It is advisable to remove the package immediately.
Rotate all secrets and keys stored on the compromised system from a different, secure computer to mitigate potential data breaches.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.
Removing the supun-baileys package is critical to prevent further exploitation and to secure your system from unauthorized access.