Malicious code in davexbaileys (npm)
- GHSA-3r5v-qj6c-9rv8
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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/91be04454d9dd20608b05789dbf0b8edb6754e25/osv/malicious/npm/davexbaileys/MAL-2026-20950.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
davexbaileysnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.