davexbaileysnpm
Advisory published Updated
davexbaileys is a confirmed malicious npm package (MAL-2026-20950) that executes malicious code on install (malicious versions 1.1.2, 1.1.3, 1.1.4…). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in davexbaileys (npm)
What this malware does
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.
Malicious versions
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for davexbaileys (27 malicious versions).
If you installed it — respond
Remove davexbaileys from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If davexbaileys was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Credits
- InvisiRisk, Inc. · finder
Detect & block this
O3 blocks davexbaileys-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.