Malicious Code Injection in whalibmob: Covert Channel Subscription Vulnerability
Summary
MAL-2026-17408: Malicious code in whalibmob (npm). Affects whalibmob versions 5.24.0 – 5.33.5. 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 'whalibmob' package is a fork of the Baileys WhatsApp Web library, designed to facilitate interactions with the WhatsApp API. It is part of a larger family of similar packages that have been identified as potentially harmful. The package allows developers to integrate WhatsApp functionalities into their applications, but it has been compromised to include malicious code that exploits users' authenticated sessions.
Vulnerability Detail
The vulnerability in 'whalibmob' arises from malicious code that injects a covert channel-subscription action into the WhatsApp socket layer. Upon connection, this code executes an authenticated 'w:mex' FOLLOW query against attacker-controlled WhatsApp Channel/Newsletter JIDs, using the victim's own authenticated session. This results in the victim's account being silently subscribed 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 threat. Although it does not exfiltrate credentials or execute arbitrary remote code, it compromises user privacy and control over their WhatsApp subscriptions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall whalibmob
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, avoid using the 'whalibmob' package until it has been updated to a secure version. Consider using alternative libraries that do not exhibit these vulnerabilities. Additionally, regularly audit your package-lock.json file to monitor for any malicious dependencies.
Conclusion
The 'whalibmob' package contains a significant vulnerability that allows for the covert subscription of users to attacker-controlled WhatsApp channels. It is crucial for developers and users to update the package to the latest version and monitor their applications for any signs of compromise. Utilizing tools like Vulert can help in identifying such vulnerabilities in real-time.
See every vulnerability recorded for whalibmob →
FAQ
The 'whalibmob' package is a library that allows developers to interact with the WhatsApp API, enabling functionalities such as messaging and notifications.
The vulnerability allows attackers to subscribe users to unwanted WhatsApp channels, compromising their privacy and control over their account.
Users may notice unexpected subscriptions to WhatsApp channels they did not join or receive notifications from channels they did not authorize.
Yes, you can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If you are affected, immediately update the 'whalibmob' package to the latest version and review your WhatsApp subscriptions for any unauthorized channels.