MAL-2026-19072: Malicious code in @yshtxxproject/baileys (npm)
Malicious package. @yshtxxproject/baileys is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). on connection it issues an authenticated w:mex newsletter FOLLOW mutation (queryid 7871414976211147) that silently subscribes every victim to attacker-controlled WhatsApp channels — hardcoded newsletter JIDs: 120363403764263127@newsletter, 120363413797603665@newsletter, 120363421563597486@newsletter, 120363423614575184@newsletter. Legitimate Baileys never hardcodes a channel JID or auto-follows on connect; all published versions are malicious.
--- -= Per source details. Do not edit below this line.=-
Source: ghsa-malware (7566379de305e8967b276c7611bf51f5f7ba5a7989e7d3ff67194cd217660dd4) 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
@yshtxxproject/baileysfrom your environment.Remove the package; removing it may not remove all malicious software resulting from its installation.
- Operational
Rotate all secrets and keys stored on the computer immediately, using a different computer.