Malicious code in cantarella-baileys (npm)
The cantarella-baileys npm package, versions 1.1.11 through 1.1.13, contains malicious code that silently subscribes the victim's WhatsApp account to attacker-controlled channels without user consent. This is done by injecting a covert channel-subscription action into the WhatsApp socket layer, issuing an authenticated FOLLOW query using the victim's own WhatsApp session. The targeted channels are obfuscated or fetched dynamically to evade detection. The malicious code does not steal credentials, maintain persistence, or execute arbitrary code.
AI Analysis
Technical Summary
The cantarella-baileys package is part of a large family of near-identical forks of the Baileys WhatsApp Web library that inject code to perform covert subscriptions to attacker-chosen WhatsApp channels. Upon connection, the injected code issues an authenticated 'w:mex' FOLLOW query using the installer's authenticated WhatsApp session to silently subscribe the victim's account to channels without their knowledge. The targeted channel JIDs are obfuscated via various encoding methods or dynamically fetched from attacker-controlled remote sources, allowing the target list to change post-installation. The malicious behavior is consistent across the family despite differences in package name and obfuscation techniques. The attack does not involve credential theft, persistence, or arbitrary code execution.
Potential Impact
Victims unknowingly subscribe their WhatsApp accounts to attacker-controlled channels, potentially exposing them to unwanted content or spam. The attack leverages the victim's authenticated session to perform these subscriptions without exfiltrating credentials or establishing persistence. There is no indication of further compromise beyond unauthorized channel subscriptions.
Mitigation Recommendations
No official patch or remediation is documented. Users should avoid installing or using the affected cantarella-baileys package versions 1.1.11, 1.1.12, and 1.1.13. Review installed npm packages for suspicious forks of Baileys and remove any identified malicious versions. Monitor for updates from the package maintainers or npm advisories for potential fixes.
Malicious code in cantarella-baileys (npm)
Description
The cantarella-baileys npm package, versions 1.1.11 through 1.1.13, contains malicious code that silently subscribes the victim's WhatsApp account to attacker-controlled channels without user consent. This is done by injecting a covert channel-subscription action into the WhatsApp socket layer, issuing an authenticated FOLLOW query using the victim's own WhatsApp session. The targeted channels are obfuscated or fetched dynamically to evade detection. The malicious code does not steal credentials, maintain persistence, or execute arbitrary code.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The cantarella-baileys package is part of a large family of near-identical forks of the Baileys WhatsApp Web library that inject code to perform covert subscriptions to attacker-chosen WhatsApp channels. Upon connection, the injected code issues an authenticated 'w:mex' FOLLOW query using the installer's authenticated WhatsApp session to silently subscribe the victim's account to channels without their knowledge. The targeted channel JIDs are obfuscated via various encoding methods or dynamically fetched from attacker-controlled remote sources, allowing the target list to change post-installation. The malicious behavior is consistent across the family despite differences in package name and obfuscation techniques. The attack does not involve credential theft, persistence, or arbitrary code execution.
Potential Impact
Victims unknowingly subscribe their WhatsApp accounts to attacker-controlled channels, potentially exposing them to unwanted content or spam. The attack leverages the victim's authenticated session to perform these subscriptions without exfiltrating credentials or establishing persistence. There is no indication of further compromise beyond unauthorized channel subscriptions.
Mitigation Recommendations
No official patch or remediation is documented. Users should avoid installing or using the affected cantarella-baileys package versions 1.1.11, 1.1.12, and 1.1.13. Review installed npm packages for suspicious forks of Baileys and remove any identified malicious versions. Monitor for updates from the package maintainers or npm advisories for potential fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17390
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6abd30852a4e24523d340128
Added to database: 09/30/2026, 15:53:41 UTC
Last enriched: 09/30/2026, 16:02:26 UTC
Last updated: 09/30/2026, 22:42:15 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.