@xzvbailss/baileys@6.0.5
Malicious code in @xzvbailss/baileys (npm)
Analysis
This package is an unofficial-scope redistribution of the baileys WhatsApp client library that silently subscribes the user's WhatsApp account to the author's channel. In src/Socket/index.js the socket factory defaults a newsletter JID to 120363430764800148@newsletter and, whenever a 'connection.update' event reports connection === 'open', starts a 10-second timer that calls sock.newsletterFollow('120363430764800148@newsletter') on the linked account, retrying up to three times at 20-second intervals. The behaviour only stops if the caller explicitly passes autoFollowNewsletters: false or a different newsletterAutoFollowId, so any bot built on the package's default configuration follows the channel without the operator's knowledge or consent. The package also hard-depends on a sibling package in the same unofficial scope (@xzvbailss/xzgateway), which is loaded for hash and crypto helpers, and declares an optional @xzvbailss/xz-protect add-on. Its preinstall hook (engine-requirements.js) only verifies Node >= 20.
- analyzed by
- Leitwacht
- first seen
- Nov 13, 2026, 08:14 AM
- analyzed
- Nov 13, 2026, 08:15 AM
- weekly installs
- 695
Related advisories
- @xzvbailss/baileys@6.0.8 same package
- @xzvbailss/baileys@5.0.0 same package
- @xzvbailss/baileys@6.0.0 same package
- @xzvbailss/baileys@1.0.0 same package
- sol-wallet-adapater@1.0.2
- base65-77x@0.0.0-stage
- base65-15x@0.0.0-stage
- base65-15x@5.0.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.