Malicious code in @ruthless-imperium/baileys (npm)
- GHSA-7c38-xq8m-xr7x
Description
Malicious package. `@ruthless-imperium/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: 120363399602691477@newsletter, 120363421563597486@newsletter. Legitimate Baileys never hardcodes a channel JID or auto-follows on connect; all published versions are malicious. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/abae3a270567a33204e1945736087dfc430dec2c/osv/malicious/npm/@ruthless-imperium/baileys/MAL-2026-19150.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
@ruthless-imperium/baileysnpm
Affected versions Fixed in all versions none stated
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.