haydraxbaileys (npm): trojanized Baileys fork hijacks users' WhatsApp accounts to follow and boost author's channels
Severity: critical · Patch status: no-fix-needed · Since 2026-12-04
OpenSSF reported the npm package haydraxbaileys as malicious code (GHSA-mj7x-v244-wq6j, MAL-2026-21128). It is a modified copy of the Baileys WhatsApp Web library (@whiskeysockets/baileys) that abuses the user's WhatsApp account: on every socket connection it calls newsletterFollow for three hardcoded channel IDs (HAYDRACHANNELS) and auto-reacts with random emojis to every new post in those channels, silently ignoring errors. The README claims it follows one channel and offers an opt-out via src/Socket/newsletter.ts, but the shipped package follows three channels and contains no src/ directory or config option to disable the behavior. Any application importing haydraxbaileys 1.0.0 is affected; there is no patched version, so remediation is removal.
What to do
- Remove haydraxbaileys from dependencies and lockfiles immediately; no safe version exists
- Audit WhatsApp accounts and sessions used by apps that ran it; unlink unfamiliar linked devices and review channel follows/reactions
- Replace with the legitimate @whiskeysockets/baileys from a verified source
- Rotate any credentials or session tokens stored in affected environments and review outbound traffic logs for newsletter-related requests
Sources
All live incidents on Threat Watch