Malicious package · npm
Malicious code in @xz-bails/baileys (npm)
6.0.106.0.11No safe version. Remove it.What it does
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.
Reported by ghsa-malware Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
No fix · Remove and contain
npm uninstall @xz-bails/baileysSources