cvelo
P2 · HighMalware

Malicious code in nakano-baileys (npm)

  • GHSA-cccg-gm4f-m4g3

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`. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/297efd11057d02e636767e81d397e371dd57bff4/osv/malicious/npm/nakano-baileys/MAL-2026-21036.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

  • nakano-baileysnpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.