@violetix/baileys@0.5.5
Malicious code in @violetix/baileys (npm)
Analysis
This package is an unofficial-scope fork of @whiskeysockets/baileys that silently subscribes every deployment to a hardcoded WhatsApp newsletter channel. In lib/Socket/newsletter.js (lines 54-60) it registers a connection.update handler that, whenever the socket reports connection "open" — including every automatic reconnect — issues a follow (xwa2_newsletter_join_v2) query for the hardcoded channel JID 120363417337256584@newsletter, logging "Auto-joined newsletter 120363417337256584@newsletter" on success. There is no option, config flag, or API call to disable it, and the follow runs as part of creating a socket, so every account the library is used to operate is enrolled in that channel without the operator's knowledge. The README's newsletter section states that each open connection automatically sends the follow request, confirming the behaviour is intentional. The package otherwise talks only to WhatsApp endpoints (web[.]whatsapp[.]com, graph[.]whatsapp[.]com, acs[.]whatsapp[.]com); its only process spawn is ffmpeg for video thumbnails, and its preinstall hook merely rejects Node versions below 20. No credential, token, or file data is collected or transmitted. Indicator: WhatsApp channel JID 120363417337256584@newsletter, auto-followed from lib/Socket/newsletter.js.
- analyzed by
- Leitwacht
- first seen
- Nov 12, 2026, 04:35 AM
- analyzed
- Nov 12, 2026, 04:36 AM
- weekly installs
- 1,017
Related advisories
- @violetix/baileys@0.5.7 same package
- @violetix/baileys@0.6.1 same package
- @violetix/baileys@0.6.0 same package
- @violetix/baileys@0.5.1 same package
- elaina-baileys@1.0.2
- @csc-protocol/token-saver@1.3.2
- raiden-baileys@2.2.5
- raiden-baileys@2.2.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.