cvelo
P2 · HighMalware

Malicious code in reycode-baileys (npm)

  • MAL-2026-20815

Description

Malicious package. `reycode-baileys` is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). `lib/Socket/newsletter.js` holds a list of hardcoded channels (120363421096003443@newsletter in 2.0.1; 2.0.2 and 2.0.3 add 120363416370859892, 120363431275243639 and 120363412719371901) and, 150 seconds after the socket is created, sends a newsletter FOLLOW for each. The newsletter layer is wired into makeWASocket (messages-send.js -> username.js -> makeNewsletterSocket), so every socket does this, silently subscribing the victim account. The README claims makeWASocket does not include the newsletter layer and that it should not be assumed to run automatically. Legitimate Baileys never hardcodes or auto-follows a channel. Version 0.0.0-stage is a placeholder stub without this code.

Text from the OSV record.

Affected

  • reycode-baileysnpm

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.