Skip to main content
MalwarePublished

baileys-xbats (npm) · Malicious Code

Affects baileys-xbatsSource GCVE Database

0

Malicious package : remove baileys-xbats and rotate any secrets on hosts that installed it.

Data as of 12 Oct 2026, 22:48 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-17388

What to do

Remove baileys-xbats 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
npmbaileys-xbatsAffected
  • 1.0.0 – 1.0.3
4 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 baileys-xbats npm package is a malicious fork of the Baileys WhatsApp Web library that silently subscribes the victim's WhatsApp account to attacker-controlled channels without user consent. This behavior affects versions 1.0.0 through 1.0.3. The malicious code issues authenticated FOLLOW queries using the victim's own WhatsApp session. The attack does not involve credential theft, persistence, or remote code execution.

References

Community reviews

Loading reviews…