Malicious Code Injection in saturn-baileys: Covert Channel Subscription Vulnerability
Summary
MAL-2026-17404: Malicious code in saturn-baileys (npm). Affects saturn-baileys versions 1.0.0. 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 saturn-baileys package is a fork of the Baileys WhatsApp Web library, designed to facilitate interactions with the WhatsApp platform. This package is part of a larger family of over 100 similar forks, which have been identified as potentially malicious. The primary functionality of saturn-baileys is to provide a means for developers to integrate WhatsApp messaging capabilities into their applications. However, due to its malicious modifications, it poses significant risks to users by silently subscribing them to unwanted channels.
Vulnerability Detail
The vulnerability in the saturn-baileys package arises from its ability to inject malicious code into the WhatsApp socket layer. Upon connection, the injected code executes an authenticated 'w:mex' FOLLOW query against attacker-chosen WhatsApp Channel/Newsletter JIDs, using the installer's own authenticated session. This allows the attacker to subscribe the victim's account to channels without their consent. The malicious code employs various obfuscation techniques to hide the target JIDs, making it difficult for users to detect the malicious intent. The vulnerability does not exfiltrate credentials or execute arbitrary remote code but exploits the user's authenticated session for nefarious purposes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall saturn-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 temporary workaround, you can remove the saturn-baileys package from your project until a secure version is released. You can do this by executing the following command: 'npm uninstall saturn-baileys'. Additionally, consider using alternative libraries that do not have known vulnerabilities.
Conclusion
The saturn-baileys package contains a serious vulnerability that allows for the injection of malicious code, leading to unauthorized subscriptions to WhatsApp channels. Users are advised to update or uninstall the package to protect their accounts. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for saturn-baileys →
FAQ
saturn-baileys is a fork of the Baileys WhatsApp Web library that allows developers to integrate WhatsApp messaging capabilities into their applications.
The vulnerability allows attackers to subscribe users to unwanted WhatsApp channels without their consent, using the user's own authenticated session.
You should immediately update the package to a patched version or uninstall it to prevent any potential exploitation.
While this vulnerability does not exfiltrate credentials, it does misuse your authenticated session for malicious purposes.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using your package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.