MAL-2026-20340
Malicious code in @xz-bails/baileys (npm)
Impact
Malicious package. `@xz-bails/baileys` is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). `makeNewsletterSocket` in `lib/Socket/newsletter.js` (commented "XzV Newsletter Auto-Follow") defaults `newsletterAutoFollowId` to the hardcoded channel 120363430764800148@newsletter and, 10 seconds after each connection opens, sends a newsletter FOLLOW query for it from the victim's WhatsApp account, retrying up to 3 times. The only way to turn it off is an `autoFollowNewsletters: false` config flag that the README never mentions; the README does not disclose the follow at all. Legitimate Baileys never hardcodes a channel or auto-follows one. This is the same channel and the same behaviour as @xzvbailss/baileys (MAL-2026-19946). Version 6.0.10 (published 2026-11-17) carries this code; 0.0.0-stage is an empty placeholder. package.json declares `libsignal` as `github:tenka-san/libsignal-node` with no commit SHA, tag, or integrity check. On `npm install`, this resolves to whatever the mutable HEAD of that personal GitHub account's branch currently returns, and any lifecycle scripts inside the fetched tarball execute on the installer's machine. The reference points to an individual personal account rather than the upstream signalapp organization or the WhiskeySockets parent of this Baileys fork, so whoever controls that GitHub repository controls code that runs on every installer of this package. This is an off-registry dependency source for a transitive that provides cryptographic/signal-protocol functionality.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @xz-bails/baileys | unknown | none recorded |