MAL-2026-18682
Malicious code in @wanzforme/bails (npm)
Impact
@wanzforme/bails is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. When the socket connects, code in lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) 120363380357951328@newsletter (stored base64-encoded), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342). package.json declares `libsignal` as a direct dependency with the value `github:wanzchil/libsignal-node` — a bare GitHub reference with no commit SHA, tag, or integrity hash. `npm install` resolves this to whatever the current state of that repository is at install time and runs any lifecycle scripts it ships. Whoever controls `wanzchil/libsignal-node` (now or in the future, including after a repo transfer or account compromise) can push arbitrary code that executes on every installer's machine, bypassing the npm registry's artifact and version controls. The yara `ping`/`GET` match on `lib/Utils/generics.js` corresponds to generic WhatsApp protocol handling (keep-alive ping and HTTP GET to media endpoints) and is not itself an installer-side harm.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | @wanzforme/bails | unknown | none recorded |
Weakness classification
References
- https://osv.dev/vulnerability/MAL-2026-18682
- https://www.npmjs.com/package/@wanzforme/bails
- https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/
- https://www.npmjs.com/package/@wanzforme/bails/v/2.0.0
- https://www.npmjs.com/package/@wanzforme/bails/v/1.0.0