Skip to main content
MalwarePublished Updated

@alannxd/baileys (npm) · Malicious Code

Affects @alannxd/baileysSource GCVE Database

0

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

Data as of 29 Oct 2026, 14:19 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-18120

What to do

Remove @alannxd/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@alannxd/baileysAffected
  • 2.1.2 – 6.2.8
27 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

The @alannxd/baileys npm package is a malicious third-party fork of the legitimate @whiskeysockets/baileys WhatsApp library. Upon import, it performs an HTTPS GET request to a mutable URL controlled by the author, revealing the consumer's IP address. Although it does not execute remote code or exfiltrate credentials directly, the package poses a risk due to its namespace confusion potential and the import-time beacon to an author-controlled source. Security sources warn that any system with this package installed should be considered fully compromised, recommending immediate secret and key rotation and package removal.

References

Community reviews

Loading reviews…