Malicious Code Injection in bungoma Package: Covert Channel Subscription Vulnerability
Summary
MAL-2026-17389: Malicious code in bungoma (npm). Affects bungoma versions 1.0.1 – 1.1.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 bungoma package is part of a larger family of forks derived from the Baileys WhatsApp Web library. It is designed to interact with the WhatsApp socket layer, allowing users to send and receive messages. However, this package has been identified as having a significant security vulnerability that enables malicious actors to exploit the user's authenticated WhatsApp session.
Vulnerability Detail
The vulnerability in the bungoma package arises from its ability to inject malicious code into the WhatsApp socket layer. When a user connects, the injected code sends an authenticated 'w:mex' FOLLOW query to attacker-controlled WhatsApp Channel/Newsletter JIDs, effectively subscribing the victim's account to channels without their consent. This is achieved through various obfuscation techniques that hide the target JIDs from casual review. The malicious action does not exfiltrate credentials or execute arbitrary code but uses the user's session to gain unauthorized reach and subscribers for the attacker's channels.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bungoma
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, users can avoid using the bungoma package until a patched version is confirmed. Additionally, consider using alternative libraries that do not have known vulnerabilities.
Conclusion
The bungoma package has a critical vulnerability that allows malicious code to exploit users' WhatsApp sessions. It is essential for users to update to the latest version or find alternative solutions to mitigate the risk. Monitoring tools like Vulert can assist in identifying vulnerabilities in your projects.
See every vulnerability recorded for bungoma →
FAQ
The bungoma package is a JavaScript library that interacts with the WhatsApp Web API, allowing users to send and receive messages through WhatsApp.
The vulnerability allows attackers to silently subscribe users to WhatsApp channels without their consent, using the user's authenticated session.
You should update the bungoma package to the latest version or consider using alternative libraries until a fix is confirmed.
Yes, Vulert can monitor your project for open-source vulnerabilities in real-time using your package-lock.json file, alerting you to any issues.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.