davexbaileys (npm): trojanized Baileys fork silently subscribes users' WhatsApp accounts to attacker channels
Severity: critical · Patch status: no-fix-needed · Since 2026-12-02
GitHub Advisory Database (GHSA-3r5v-qj6c-9rv8, MAL-2026-20950) flags davexbaileys, a modified copy of the Baileys WhatsApp Web library, as malicious. In versions 1.1.2–2.5.24, makeNewsletterSocket waits 90 seconds after makeWASocket, decodes a base64 URL to raw.githubusercontent.com/pesh-254/Davexpair/main/newsletter.json, downloads channel IDs and silently sends newsletter FOLLOW queries on the user's authenticated WhatsApp session, discarding errors. Versions 2.5.27–2.5.28 instead auto-follow a hardcoded channel (120363426943699042@newsletter) on connection open; neither behaviour is documented. The same account publishes davebaileys (MAL-2026-18960) fetching the same list. No patched versions exist; any installed version should be treated as compromised.
What to do
- Remove davexbaileys and davebaileys from all projects and lockfiles; replace with the legitimate @whiskeysockets/baileys
- Audit WhatsApp accounts/sessions used with the package and unfollow any unknown channels
- Revoke and re-pair WhatsApp linked sessions and review channel activity
- Check whether the newsletter.json URL was fetched from your infrastructure and block the domain
- Scan builds and CI caches for the packages before redeploying
Sources
All live incidents on Threat Watch