@modss/baileys (npm) · Malicious Code
Affects @modss/baileysSource GCVE Database
Malicious package : remove @modss/baileys and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:28 UTC
Malicious package
Published to npm · OSV MAL-2026-15918
What to do
Remove @modss/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@modss/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
@modss/baileys is a maliciously modified fork of the Baileys WhatsApp Web library that automatically follows publisher-controlled WhatsApp channels at runtime. It fetches a remote list of newsletter IDs from a GitHub URL and issues follow commands on the user's authenticated WhatsApp session without user consent. This behavior is embedded in all published versions of the package. No credential or session key theft was observed, but the package grants an attacker control over the WhatsApp session's follow actions. The package should be considered fully compromised and removed immediately.
References
- npmjs.com/package/@modss/baileys (opens in a new tab)
- osv.dev/vulnerability/MAL-2026-15819 (opens in a new tab)
- osv.dev/vulnerability/MAL-2026-13932 (opens in a new tab)
- pkgwarden.com/incidents/baileys-whatsapp-auto-follow-npm-september-2026/ (opens in a new tab)
- github.com/advisories/GHSA-4c9v-m7qm-2mpr (opens in a new tab)
- npmjs.com/package/@modss/baileys/v/2.0.0 (opens in a new tab)