@kropaku/baileys (npm) · Malicious Code
Affects @kropaku/baileysSource GCVE Database
Malicious package : remove @kropaku/baileys and rotate any secrets on hosts that installed it.
Data as of 20 Nov 2026, 21:59 UTC
Malicious package
Published to npm · OSV MAL-2026-20311
What to do
Remove @kropaku/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@kropaku/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 @kropaku/baileys npm package is a fork of the Baileys WhatsApp library that contains malicious code designed to covertly relay data or exfiltrate credentials. It includes obfuscated code that decodes a hidden HTTPS endpoint unrelated to the original project and integrates this endpoint into the message sending process. The obfuscation and concealed network destination indicate an intent to hide unauthorized data transmission within a WhatsApp session library.
References
- npmjs.com/package/@kropaku/baileys/v/6.7.23 (opens in a new tab)
- npmjs.com/package/@kropaku/baileys/v/6.7.22 (opens in a new tab)
- npmjs.com/package/@kropaku/baileys/v/6.7.21 (opens in a new tab)
- npmjs.com/package/@kropaku/baileys/v/6.7.24 (opens in a new tab)
- npmjs.com/package/@kropaku/baileys/v/6.7.20 (opens in a new tab)