Malicious code in @angkasabaileys/baileys (npm)
- GHSA-2hqr-p625-3qq9
Description
Malicious package. `@angkasabaileys/baileys` is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). `makeNewsletterSocket` in `lib/Socket/newsletter.js` registers a `connection.update` handler that, every time the socket connection opens, issues a newsletter FOLLOW for the hardcoded channel 120363431179022660@newsletter from the victim's account, silently swallowing any error. There is no option to disable it, and the README states the opposite ("No auto-follow channel (newsletter) behavior"). Legitimate Baileys never hardcodes a channel or auto-follows one. Version 1.0.1 (published 2026-11-17) carries this code. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/8c7c65fd9d16231dee2521ba851c76da6f9174ac/osv/malicious/npm/@angkasabaileys/baileys/MAL-2026-20678.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
@angkasabaileys/baileysnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.