Malicious code in davexbaileys (npm)
- MAL-2026-20950
Description
davexbaileys is a modified copy of the Baileys WhatsApp Web library (@whiskeysockets/baileys) that silently subscribes the user's WhatsApp account to channels chosen by its author. When an application that imports it creates a socket with `makeWASocket`, `makeNewsletterSocket` in `lib/Socket/newsletter.js` waits 90 seconds, decodes a base64-encoded URL, `hxxps://raw[.]githubusercontent[.]com/pesh-254/Davexpair/main/newsletter[.]json`, downloads a list of channel IDs from it and sends the newsletter FOLLOW query for each on the user's authenticated session, discarding every error (versions 1.1.2 to 2.5.24). Versions 2.5.27 and 2.5.28 instead follow the hardcoded `120363426943699042@newsletter`, set as the default `autoFollowNewsletterJid`, when the connection first opens; the README mentions neither behaviour. The npm account davextech also published davebaileys (MAL-2026-18960), which fetches the same list.
Text from the OSV record.
Affected
davexbaileysnpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.