Malicious code in nakano-baileys (npm)
- MAL-2026-21036
Description
nakano-baileys is a modified copy of the Baileys WhatsApp Web library (@whiskeysockets/baileys) that subscribes the user's WhatsApp account to three channels chosen by its author. When an application that imports it creates a socket with `makeWASocket` and the connection first opens, `lib/Socket/index.js` calls `autoFollowChannels` from `lib/custom.js`, which sends `newsletterFollow` on the user's authenticated session for 120363413531701847@newsletter, 120363431680006732@newsletter and 120363412274875891@newsletter, with `autoFollow: true` as the default. Earlier versions documented this and an opt-out in the README; from 1.0.8 the README no longer mentions it, while the code is unchanged. Versions 1.0.3 to 1.0.5 followed 120363424153860594@newsletter instead, the channel that @randev404/baileys (MAL-2026-18878) also follows from its `lib/custom.js`.
Text from the OSV record.
Affected
nakano-baileysnpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.