@ostyado/baileys (npm) · Malicious Code
Affects @ostyado/baileysSource GCVE Database
Malicious package : remove @ostyado/baileys and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:27 UTC
Malicious package
Published to npm · OSV MAL-2026-17372
What to do
Remove @ostyado/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@ostyado/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 npm package @ostyado/baileys versions 2.0.6 through 2.0.9 contains malicious code that silently subscribes the user's authenticated WhatsApp account to attacker-controlled channels without user consent. This is achieved by injecting a covert FOLLOW query into the WhatsApp socket connection, using the victim's own session. The targeted channels are obfuscated or dynamically fetched, making detection difficult. The malicious code does not steal credentials, establish persistence, or execute arbitrary code.