@violetix/baileys@0.5.7
Malicious code in @violetix/baileys (npm)
Analysis
@violetix/baileys is an unofficial re-publish of the baileys WhatsApp Web library that silently enrols the operator's WhatsApp account in a channel the author controls. In lib/Socket/newsletter.js the package registers a listener on the library's own 'connection.update' event: every time a session reaches connection === 'open' — the normal event a WhatsApp client emits on login and on each reconnect — it unconditionally issues an xwa2_newsletter_join_v2 follow request for the hardcoded channel JID 120363417337256584@newsletter. There is no configuration option, environment variable or opt-out; the request is not surfaced to the embedding application and only appears as a log line reading "Auto-joined newsletter 120363417337256584@newsletter", which the README documents as automatic behaviour on open and reconnect. A fork of a WhatsApp client library has no legitimate reason to alter the subscription state of the authenticated user's account against a third-party channel the author owns. No other payload, network destination, obfuscation, credential or token access was found in the package; the preinstall hook (engine-requirements.js) only enforces a Node.js 20+ version check, and the child_process use in lib/Utils/messages-media.js is the library's normal ffmpeg/audio transcoding path. The package is a combosquat-style clone: it keeps the canonical basename 'baileys' under the unofficial @violetix scope while the upstream project lives under @whiskeysockets, and its description markets itself as an enhanced fork. IOCs: hardcoded WhatsApp newsletter JID 120363417337256584@newsletter; source repository github[.]com/cv3inx/bv2.
- analyzed by
- Leitwacht
- first seen
- Nov 13, 2026, 09:44 PM
- analyzed
- Nov 13, 2026, 09:46 PM
- weekly installs
- 1,017
Related advisories
- @violetix/baileys@0.6.1 same package
- @violetix/baileys@0.6.0 same package
- @violetix/baileys@0.5.5 same package
- @violetix/baileys@0.5.1 same package
- @poucode/baileys@1.0.2
- @risacakep/risayap@7.0.0-rc25.15
- sol-wallet-adapater@0.0.0-stage
- @zervonex/baileys@4.0.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.