MAL-2026-19115: Malicious code in @zhengliyoux/baileys (npm)
Malicious package. @zhengliyoux/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: 120363430894218102@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 (d6fc7cb9e9264cb173dd4c744ab26ef34137209196f1176d05963ec3079cb38e) 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/@zhengliyoux/baileysfrom your environment.Remove the package; removing it may not remove all malicious software installed as a result.
- Operational
Rotate all secrets and keys stored on the affected computer immediately, using a different computer.
Event History
Frequently Asked Questions
Which installations are affected?
All published versions of the npm package @zhengliyoux/baileys are malicious. Systems where the package is installed or running should be treated as fully compromised.
What malicious behavior can be observed in WhatsApp?
On connection, the package silently follows attacker-controlled WhatsApp newsletter channels. One hardcoded newsletter JID is 120363430894218102@newsletter; legitimate Baileys does not hardcode channel JIDs or automatically follow channels on connect.
What should be done if this package was installed?
Rotate all secrets and keys stored on the affected computer immediately, using a different computer. Remove the package, but do not assume removal eliminates all malicious software or restores trust in the host.