@jiancodes/baileys@2.0.3
Malicious code in @jiancodes/baileys (npm)
Analysis
This package is a re-publish of the baileys WhatsApp Web library under an unofficial scope, and its README instructs users to alias the canonical @whiskeysockets/baileys name to it. Once the library is imported, lib/Socket/newsletter.js silently issues WhatsApp w:mex FOLLOW queries over the user's own connected session, enrolling the user's account in the author's channels without consent. The two channel JIDs are hidden as base64 literals (decoding to 120363399266188954@newsletter and 120363402472932012@newsletter) and are dispatched by a 90-second setTimeout with a nested 5-second timer after module load; the block is preceded by a taunting comment and swallows all errors. The tarball also contains the editor backup lib/Socket/newsletter.js.bak with an earlier variant of the same block listing three additional hardcoded channel JIDs. lib/Utils/generics.js additionally fetches version data from a non-canonical repository at hxxps://raw[.]githubusercontent[.]com/z4phdev/baileys/master/src/Defaults/baileys-version[.]json. The package reads and transmits no credentials, tokens, environment variables or local files.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:13 AM
- analyzed
- Nov 16, 2026, 12:18 AM
Related advisories
- @jiancodes/baileys@2.0.5 same package
- @jiancodes/baileys@2.0.6 same package
- wertybailz@1.0.11
- libsignal-node-travatiger@1.0.0
- @ravliesh/baileys@1.0.1
- @lubyzzxmods/baileys@2.0.4
- dapzsyz-baileysm@0.4.2
- amanexfujimiya-baileys@8.6.26
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.