luoxy-baileys (npm) · Malicious Code
Affects luoxy-baileysSource GCVE Database
Malicious package : remove luoxy-baileys and rotate any secrets on hosts that installed it.
Data as of 16 Nov 2026, 17:49 UTC
Malicious package
Published to npm · OSV MAL-2026-17446
What to do
Remove luoxy-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 |
|---|---|---|
| npmluoxy-baileys | 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 luoxy-baileys npm package, a fork of the Baileys WhatsApp Web library, contains malicious code that automatically subscribes the user's authenticated WhatsApp account to certain WhatsApp Channels (newsletters) chosen by the publisher. This auto-subscription occurs without explicit user consent, triggered 90 seconds after a WhatsApp connection is established. The list of channels to follow is partially hardcoded and partially fetched at runtime from a publisher-controlled GitHub URL, allowing dynamic modification of subscribed channels. The package does not exfiltrate credentials or install persistent backdoors, but it covertly inflates the publisher's channel subscriber counts. This behavior is enabled by default and undocumented except for a comparison table in the README. A user can opt out by setting a configuration flag to false.
References
- ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/ (opens in a new tab)
- npmjs.com/package/luoxy-baileys (opens in a new tab)
- npmjs.com/package/luoxy-baileys/v/7.1.2 (opens in a new tab)
- npmjs.com/package/luoxy-baileys/v/7.1.3 (opens in a new tab)
- npmjs.com/package/luoxy-baileys/v/7.1.1 (opens in a new tab)
- github.com/advisories/GHSA-2fj2-477q-4h3f (opens in a new tab)