Skip to main content
MalwarePublished Updated

@dcloude/baileys (npm) · Malicious Code

Affects @dcloude/baileysSource GCVE Database

0

Malicious package : remove @dcloude/baileys and rotate any secrets on hosts that installed it.

Data as of 3 Dec 2026, 20:17 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-20951

What to do

Remove @dcloude/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@dcloude/baileysAffected
  • 0.0.8 – 0.1.4
6 affected builds
Fixed in–

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

Description

@dcloude/baileys is a maliciously modified version of the Baileys WhatsApp Web library that silently subscribes the user's WhatsApp account to multiple channels chosen by the package author without user consent. This auto-subscription occurs shortly after the socket connection is established and is not documented in the package README. The package also depends on an unpinned git repository for a cryptography library, allowing the author to change installed code post-publication. No credential theft or data exfiltration is observed in the shipped source.

References

Community reviews

Loading reviews…