cvelo
P2 · HighMalware

Malicious code in @alexiddev/baileys (npm)

  • MAL-2026-20677

Description

Malicious package. `@alexiddev/baileys` is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). `lib/Alex/auto-follow.js` defines a default auto-follow list containing the hardcoded attacker-controlled WhatsApp channel 120363404367589225@newsletter. `attachAutoFollow`, called from `lib/Socket/index.js` for every socket, waits for the connection to open and then calls `newsletterFollow` for that channel, silently subscribing the victim account. The behaviour is enabled by default. Legitimate Baileys never hardcodes a channel JID or auto-follows a channel. Versions 1.0.0 and 1.0.1 carry this code; the `0.0.0-stage` placeholder does not.

Text from the OSV record.

Affected

  • @alexiddev/baileysnpm

    • all versions, no fix listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.