@dcloude/baileys (npm): malicious fork of Baileys silently auto-follows WhatsApp channels on users' accounts (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-12-02
OpenSSF and the GitHub Advisory Database flagged @dcloude/baileys, a modified copy of the Baileys WhatsApp Web library, as malicious (CWE-506). When an application using the package calls makeWASocket, lib/Socket/newsletter.js issues newsletter FOLLOW queries on the user's authenticated WhatsApp session for a hardcoded list of channels: 41–53 IDs on first connection in versions 0.0.8–0.1.2, and 57 IDs 150 seconds after socket creation in 0.1.3–0.1.4, with no opt-out. Code comments claim the behavior is documented in a README and LITERACY.md, but the README omits it and no LITERACY.md exists; a 'channel-follow guard' blocks other follow calls while permitting the author's list. All published versions (0.0.8–0.1.4) are affected with no fixed release; users should remove the package and audit their WhatsApp channel subscriptions.
What to do
- Remove @dcloude/baileys from dependencies and replace with the legitimate @whiskeysockets/baileys
- Audit WhatsApp accounts used with the package for unauthorized channel follows and unfollow unknown channels
- Revoke/re-authenticate WhatsApp sessions used with the malicious library
- Scan lockfiles and CI caches to ensure the package is not reintroduced
- Monitor for further typosquat/fork packages of Baileys
Sources
All live incidents on Threat Watch