Malicious npm fork @krispedia/baileys silently follows attacker's WhatsApp channel
Severity: critical · Patch status: no-fix-needed · Since 2026-12-04
GitHub Advisory Database (GHSA-3c6v-7h4r-3w46, credited to OpenSSF) flags @krispedia/baileys, a modified copy of the Baileys WhatsApp Web library, as malicious. Versions 6.7.23 and 6.7.24 contain code in lib/Socket/newsletter.js that, 120 seconds after an application creates a socket, silently sends a newsletter FOLLOW query for the hardcoded channel 120363407277177688@newsletter using the user's authenticated WhatsApp session, with no opt-out and no README disclosure. The same channel ID appears in previously reported malicious forks raiden-baileys and @kazehayadev1/raidenx-baileys, indicating a coordinated campaign. No patched versions exist; any app depending on the package subscribes users' WhatsApp accounts to the attacker's channel.
What to do
- Remove @krispedia/baileys and any other flagged Baileys forks (raiden-baileys, @kazehayadev1/raidenx-baileys) from dependencies immediately
- Switch to the legitimate @whiskeysockets/baileys package and audit for behavioral differences
- Unfollow the channel 120363407277177688@newsletter from affected WhatsApp accounts and review account activity
- Rotate WhatsApp session credentials/linked devices for accounts that ran affected code
- Scan dependency trees and lockfiles for the malicious package and add it to blocklists
Sources
All live incidents on Threat Watch