Vulnerability MAL-2026-20662
Summary
Malicious code in dew-baileys (npm)
Details
dew-baileys is a fork of the WhatsApp Web library Baileys. Versions 3.0.4 to 3.1.1 and 1.0.0 change lib/Socket/newsletter.js so that every socket created with the library makes the user's WhatsApp account follow hard-coded WhatsApp channels (three in 3.0.4 to 3.1.1, four in 1.0.0) about 90 seconds after start, without asking or telling the user. The channel IDs (including the author's 'Dew Coders OFC' channel) are hidden as base64 strings and errors are swallowed. It runs whenever an application uses the library; no install hook is involved. This is the PhantomSub-style WhatsApp channel auto-follow behaviour seen in other malicious Baileys forks (e.g. mod-baileys). Version 1.0.0 was published after 3.1.1 (it was the 'latest' tag) and adds a fourth hidden channel ID, 120363421052027188@newsletter. Earlier versions 0.1.1 to 3.0.3 do not contain the hidden follow calls. Reported to npm on 2026-11-26 and replaced with a security holding package (0.0.1-security) on 2026-11-26.