@sanzoffc/baileys (npm) · Malicious Code
Affects @sanzoffc/baileysSource GCVE Database
Malicious package : remove @sanzoffc/baileys and rotate any secrets on hosts that installed it.
Data as of 12 Oct 2026, 22:02 UTC
Malicious package
Published to npm · OSV MAL-2026-16281
What to do
Remove @sanzoffc/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@sanzoffc/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 @sanzoffc/baileys npm package is a malicious fork of the Baileys WhatsApp library that performs covert remote-controlled actions using the installer's authenticated WhatsApp session. It fetches a JSON list from a third-party controlled GitHub branch and issues WhatsApp GraphQL mutations to subscribe or follow newsletter IDs without user consent. The package uses obfuscated strings and hardcoded identifiers to evade detection. This behavior is undocumented and non-configurable, indicating malicious intent. The package pins most dependencies loosely, increasing risk. Installation of this package compromises the host system, potentially exposing all stored secrets and keys.