Malicious code in @baileys-md/baileys (npm)
- MAL-2026-18807
Description
@baileys-md/baileys is a fork of the Baileys WhatsApp Web library. In version 12.2.0, makeNewsletterSocket in lib/Socket/newsletter.js starts a timer that, 80 seconds after the socket is created, sends the WhatsApp w:mex FOLLOW query for the channels 120363419781122699@newsletter and 120363388692253922@newsletter through the user's authenticated session, with errors swallowed and without telling the user. Releases 12.2.1 to 12.3.2 ship the same block commented out, so they are not listed. Same behaviour as the PhantomSub family (MAL-2026-17342).
Text from the OSV record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
@baileys-md/baileysnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.