@ubedsockets/baileys (npm) · Malicious Code
Affects @ubedsockets/baileysSource GCVE Database
Malicious package : remove @ubedsockets/baileys and rotate any secrets on hosts that installed it.
Data as of 13 Nov 2026, 04:29 UTC
Malicious package
Published to npm · OSV MAL-2026-18600
What to do
Remove @ubedsockets/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@ubedsockets/baileyspkg:npm/%40ubedsockets%2FbaileysOther 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 @ubedsockets/baileys is a trojanized fork of the legitimate Baileys WhatsApp library. It contains malicious code that automatically subscribes victims to attacker-controlled WhatsApp newsletter channels upon connection. The package uses a mutable off-registry dependency for its cryptographic component, allowing remote code execution during installation. Additionally, it includes an IP-locked kill switch that terminates the host process unless the installer's IP matches specific hardcoded addresses. All published versions of this package are malicious.