@erlanzz/baileys (npm) · Malicious Code
Affects @erlanzz/baileysSource GCVE Database
Malicious package : remove @erlanzz/baileys and rotate any secrets on hosts that installed it.
Data as of 10 Nov 2026, 15:21 UTC
Malicious package
Published to npm · OSV MAL-2026-17440
What to do
Remove @erlanzz/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@erlanzz/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
The @erlanzz/baileys npm package version 1.0.0 is a malicious fork of the Baileys WhatsApp Web library that covertly uses the installer's authenticated WhatsApp session to subscribe the account to specific WhatsApp Channels without user consent. This behavior inflates the publisher's channel subscribers by sending WhatsApp FOLLOW queries to predefined channel JIDs. The malicious code runs when an application creates a WhatsApp socket with the library and does not send credentials off-host or persist beyond runtime.