@kropa/baileys (npm) · Malicious Code
Affects @kropa/baileysSource GCVE Database
Malicious package : remove @kropa/baileys and rotate any secrets on hosts that installed it.
Data as of 20 Nov 2026, 22:00 UTC
Malicious package
Published to npm · OSV MAL-2026-20310
What to do
Remove @kropa/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@kropa/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 @kropa/baileys npm package is a fork of the Baileys WhatsApp library that contains malicious code. It includes an obfuscated module and reconstructs an outbound HTTPS URL to a third-party domain unrelated to WhatsApp infrastructure. This URL is contacted during normal message sending, potentially enabling covert data relay or interception of credentials or messages.