@alannxds/baileys (npm) · Malicious Code
Affects @alannxds/baileysSource GCVE Database
Malicious package : remove @alannxds/baileys and rotate any secrets on hosts that installed it.
Data as of 19 Nov 2026, 23:23 UTC
Malicious package
Published to npm · OSV MAL-2026-18669
What to do
Remove @alannxds/baileys from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@alannxds/baileys | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
@alannxds/baileys is a malicious fork of the Baileys WhatsApp Web library that silently subscribes the installer's WhatsApp account to specific WhatsApp Channels without user consent. It fetches and executes code from mutable, author-controlled external sources, enabling dynamic malicious behavior.
References
- npmjs.com/package/@alannxds/baileys (opens in a new tab)
- ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/ (opens in a new tab)
- npmjs.com/package/@alannxds/baileys/v/6.2.12 (opens in a new tab)
- npmjs.com/package/@alannxds/baileys/v/6.2.13 (opens in a new tab)