dinocode-baileys (npm) · Malicious Code
Affects dinocode-baileysSource GCVE Database
Malicious package : remove dinocode-baileys and rotate any secrets on hosts that installed it.
Data as of 1 Dec 2026, 14:47 UTC
Malicious package
Published to npm · OSV MAL-2026-20429
What to do
Remove dinocode-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 |
|---|---|---|
npmdinocode-baileyspkg:npm/dinocode-baileysOther threats | 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 'dinocode-baileys' is a trojanized fork of the Baileys WhatsApp library that contains malicious code. It silently subscribes victim WhatsApp accounts to attacker-controlled channels by sending hidden subscription commands after connection. This behavior is not present in the legitimate Baileys library. The affected version is 9.0.23. Systems with this package installed should be considered fully compromised.