@fhkry/x-baileys (npm) · Malicious Code
Affects @fhkry/x-baileysSource GCVE Database
Malicious package : remove @fhkry/x-baileys and rotate any secrets on hosts that installed it.
Data as of 15 Jul 2026, 12:40 UTC
Malicious package
Published to npm · OSV MAL-2026-10665
What to do
Remove @fhkry/x-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 |
|---|---|---|
| npm@fhkry/x-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 npm package @fhkry/x-baileys is a malicious fork impersonating the original Baileys WhatsApp library. It contains covert code that, after 120 seconds of socket creation, fetches a remote JSON file with base64-encoded WhatsApp newsletter IDs and silently subscribes the user's WhatsApp account to these newsletters. Additionally, it automatically joins attacker-controlled WhatsApp groups without user consent. The attacker can update the lists remotely, enabling dynamic control over the compromised accounts. The package falsely claims the original author and misleads users about its origin. Installation of this package compromises the user's WhatsApp identity and potentially the host system.
References
- github.com/advisories/GHSA-mxxc-f6p6-98j7 (opens in a new tab)
- npmjs.com/package/@fhkry/x-baileys/v/1.3.0 (opens in a new tab)
- npmjs.com/package/@fhkry/x-baileys/v/1.4.0 (opens in a new tab)
- npmjs.com/package/@fhkry/x-baileys/v/1.0.0 (opens in a new tab)
- npmjs.com/package/@fhkry/x-baileys/v/1.7.0 (opens in a new tab)
- npmjs.com/package/@fhkry/x-baileys/v/1.1.0 (opens in a new tab)
- npmjs.com/package/@fhkry/x-baileys/v/1.6.0 (opens in a new tab)
- npmjs.com/package/@fhkry/x-baileys/v/1.2.0 (opens in a new tab)
- npmjs.com/package/@fhkry/x-baileys/v/1.5.0 (opens in a new tab)