Malicious code in @vanzky/baileys (npm)
- GHSA-8p52-w8c9-gf98
Description
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/abed49ecea90aa2c417ca25831a85a450b1260b2/osv/malicious/npm/@vanzky/baileys/MAL-2026-19055.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
@vanzky/baileysnpm
Affected versions Fixed in all versions none stated
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.