@kingorwot/my-baileys (npm) · Malicious Code
Affects @kingorwot/my-baileysSource GCVE Database
Malicious package : remove @kingorwot/my-baileys and rotate any secrets on hosts that installed it.
Data as of 20 Nov 2026, 06:22 UTC
Malicious package
Published to npm · OSV MAL-2026-20292
What to do
Remove @kingorwot/my-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@kingorwot/my-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 @kingorwot/my-baileys npm package (version 2.0.0) includes malicious code that automatically causes the installer's WhatsApp session to follow arbitrary channels without disclosure. This occurs via a delayed task that fetches a mutable JSON file from a personal GitHub repository, enabling the attacker to control which channels are followed. The package depends on an unpinned third-party repository, allowing arbitrary code execution during installation.