@poucode/baileys@2.0.1
Malicious code in @poucode/baileys (npm)
Analysis
This package is a WhatsApp Web library (a fork of Baileys) that silently subscribes the installing account to hardcoded WhatsApp channels. In lib/Socket/newsletter.js it declares const newsletterIds = ["120363429394939370@newsletter", "120363430414713911@newsletter", "120363424058761303@newsletter"] (comments "Pou" and "ZansShop") and, at module load, runs a 150-second timer whose callback issues a "w:mex" FOLLOW query for each of those newsletter JIDs via newsletterWMexQuery(jid, QueryIds.FOLLOW), pausing 5 seconds between each and discarding any error into the library logger. The file is loaded whenever the socket layer is used (lib/Socket/username.js imports makeNewsletterSocket from it, and lib/Socket/messages-send.js imports username.js), so the follow happens on ordinary library use with no configuration option, no user consent, and no mention in the documentation. The delay places the account action well past the start of the process, after setup code has already been reviewed. No network destination other than WhatsApp endpoints is contacted and no credential or file data is read.
- analyzed by
- Leitwacht
- first seen
- Nov 14, 2026, 02:11 PM
- analyzed
- Nov 14, 2026, 02:30 PM
- weekly installs
- 1,104
Related advisories
- @poucode/baileys@2.0.0 same package
- @poucode/baileys@1.0.2 same package
- youtube-info-streams@1.1.3
- kredo@0.2.1
- @violetix/baileys@0.5.7
- @risacakep/risayap@7.0.0-rc25.15
- sol-wallet-adapater@0.0.0-stage
- @zervonex/baileys@4.0.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.