MAL-2026-19055: Malicious code in @vanzky/baileys (npm)
Malicious package. @vanzky/baileys is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). it silently subscribes every victim (via the injected WhatsApp newsletter/channel FOLLOW on connect) to attacker-controlled WhatsApp channels — hardcoded newsletter JIDs: 120363412479307951@newsletter, 120363413713776550@newsletter, 120363429868081610@newsletter. Legitimate Baileys never hardcodes a channel JID or auto-follows on connect; all published versions are malicious. Detected by wormsign static analysis of the injected channel-subscription code.
--- -= Per source details. Do not edit below this line.=-
Source: ghsa-malware (0892744fcb2a176bd109969570984e1034e4e530c374d2586cae072d0b15011d) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Remove
Remove
npm/@vanzky/baileysfrom your environment.Remove the @vanzky/baileys package; removing it may not remove all malware resulting from its installation.
- Operational
Rotate all secrets and keys stored on the affected computer immediately, using a different computer.
Event History
Frequently Asked Questions
Are any published versions safe to use?
No. All published versions are malicious; there is no safe version of this package to upgrade to.
Which systems should be treated as exposed?
Any computer with the package installed or running should be considered fully compromised. Systems that run it and connect to WhatsApp will also silently follow attacker-controlled WhatsApp channels.
How can I confirm that this package is implicated?
Check for the npm package name @vanzky/baileys in installed dependencies or running applications. The injected code hardcodes newsletter JIDs 120363412479307951@newsletter, 120363413713776550@newsletter, and 120363429868081610@newsletter and subscribes to them on connection.
What should I do if this package is found?
Remove the package and rotate all secrets and keys stored on the affected computer immediately, using a different computer. Removal alone may not eliminate other malicious software because the compromise may have given an outside party full control of the system.