nakano-baileys (npm): malicious fork of Baileys silently subscribes users' WhatsApp accounts to attacker channels (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-12-03
GitHub Advisory GHSA-cccg-gm4f-m4g3 flags the npm package nakano-baileys, a modified copy of the Baileys WhatsApp Web library (@whiskeysockets/baileys), as containing malicious code (CWE-506). When an application using it opens a socket via makeWASocket, lib/Socket/index.js calls autoFollowChannels from lib/custom.js, which uses the user's authenticated WhatsApp session to send newsletterFollow requests subscribing the account to three author-chosen channels (120363413531701847@newsletter, 120363431680006732@newsletter, 120363412274875891@newsletter), with autoFollow enabled by default. Versions 1.0.3–1.0.5 followed a different channel also targeted by @randev404/baileys (MAL-2026-18878). From 1.0.8 the README no longer documents the behavior or opt-out while the code remains. Affected versions 1.0.8–1.1.5 have no patched versions; the package is malware and should be removed.
What to do
- Remove nakano-baileys from dependencies and replace it with the upstream @whiskeysockets/baileys library
- Audit applications that used the package for unintended newsletter subscriptions on their WhatsApp accounts and unfollow the attacker channels
- Re-authenticate/review WhatsApp sessions used by affected applications and check for other unauthorized actions on the session
- Scan lockfiles and CI for related malicious Baileys forks such as @randev404/baileys (MAL-2026-18878)
- Add the package to dependency blocklists and monitor for renamed successors
Sources
All live incidents on Threat Watch