wailib (npm) · Malicious Code
Affects wailibSource GCVE Database
Malicious package : remove wailib and rotate any secrets on hosts that installed it.
Data as of 16 Nov 2026, 19:51 UTC
Malicious package
Published to npm · OSV MAL-2026-17451
What to do
Remove wailib 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 |
|---|---|---|
| npmwailib | 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 wailib npm package (version 1.0.0) is a malicious fork of the Baileys WhatsApp Web library that covertly uses the victim's authenticated WhatsApp session to subscribe the account to specific WhatsApp Channels chosen by the publisher without user consent. The package follows channels silently by sending WhatsApp 'w:mex' FOLLOW queries and then mutes them to avoid user notification. The README falsely claims no auto-follow behavior, contradicting the actual code. No credentials or session keys are exfiltrated, and no persistence mechanism is present. The primary harm is unauthorized use of the victim's account to inflate channel subscribers.