GHSA-72cg-f236-g9g4
Malicious code in baileys-clean (npm)
Auswirkung
baileys-clean is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. makeNewsletterSocket in lib/Socket/newsletter.js contains a self-invoking property named newsletterAutoFollowSilent that registers a connection.update listener at socket creation; 15 seconds after every 'open' it calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each of four hardcoded channel IDs (120363406225530257@newsletter, 120363408101167880@newsletter, 120363419318051000@newsletter, 120363421412174731@newsletter), 3.5 seconds apart, swallowing errors, and then repeats the whole loop every 60 seconds for as long as the socket is open. The README states the fork has no hidden auto-follow and documents an explicit opt-in function, autoFollowOwnerChannels, that does not exist anywhere in the shipped code; the only follow path is the automatic one. Same behaviour as the PhantomSub family (MAL-2026-17342). --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/b93291e5361509bcfdaf6e283b76dbafbdca62ae/osv/malicious/npm/baileys-clean/MAL-2026-19947.json))
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | baileys-clean | = 7.3.2 | nicht erfasst |
Schwachstellenklasse
Referenzen
- GitHub-Advisory
- https://github.com/advisories/GHSA-72cg-f236-g9g4
- https://github.com/ossf/malicious-packages/blob/b93291e5361509bcfdaf6e283b76dbafbdca62ae/osv/malicious/npm/baileys-clean/MAL-2026-19947.json
- https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels