GHSA-4483-mwp6-mf8w
Malicious code in @alexiddev/baileys (npm)
Impact
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/8c7c65fd9d16231dee2521ba851c76da6f9174ac/osv/malicious/npm/@alexiddev/baileys/MAL-2026-20677.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @alexiddev/baileys | > 0 | none recorded |
| npm | @alexiddev/baileys | = 1.0.0 | none recorded |
| npm | @alexiddev/baileys | = 1.0.1 | none recorded |