Skip to main content
MalwarePublished

@smart-dev-wa/baileys (npm) · Malicious Code

Affects @smart-dev-wa/baileysSource GCVE Database

0

Malicious package : remove @smart-dev-wa/baileys and rotate any secrets on hosts that installed it.

Data as of 6 Nov 2026, 18:36 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-17442

What to do

Remove @smart-dev-wa/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

ProductAffectedFixed in
npm@smart-dev-wa/baileysAffected
  • =1.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The @smart-dev-wa/baileys npm package version 1.0.0 contains malicious code that automatically subscribes the user's authenticated WhatsApp account to a specific WhatsApp Channel without user consent. This behavior contradicts the package's README claim of no auto-follow functionality. The malicious action occurs when an application using this library creates a WhatsApp socket connection. No credentials or session keys are exfiltrated, and no install-time payload or persistence mechanisms are present. The primary harm is unauthorized use of the victim's account to inflate subscriber counts for the attacker's chosen channels.

References

Community reviews

Loading reviews…