{"id":"MAL-2026-20950","summary":"Malicious code in davexbaileys (npm)","details":"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.","modified":"2026-12-02T03:45:05.256809786Z","published":"2026-11-27T18:41:46Z","database_specific":{"iocs":{"files":[{"paths":["lib/Socket/newsletter.js"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"857402c958abff6fce0f1607b18a36e83ae5415052fff0dcb6b68079522a5803"},"note":"1.1.2-1.1.5, 2.5.8-2.5.14: fetches the channel list from the base64-encoded GitHub URL 90 s after socket creation and follows each entry."},{"source":"PACKAGE_ARCHIVE","digests":{"sha256":"905cad502760c9d9c6efe5d19d54ce0d89860212e91b3adb3003461b78828b8b"},"note":"1.4.1-1.4.5: same remote-list follow.","paths":["lib/Socket/newsletter.js"]},{"source":"PACKAGE_ARCHIVE","digests":{"sha256":"9657090200632febc22d650a6b51074814ed56b1bbc869f7b7a5feb8bb3ec671"},"note":"2.5.15-2.5.24: same remote-list follow.","paths":["lib/Socket/newsletter.js"]},{"paths":["lib/Socket/newsletter.js"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"024385fced81c2124c59c21eaf284c600b38b5ab257c2facd73532a7a3e9e84a"},"note":"2.5.27: follows the default autoFollowNewsletterJid 120363426943699042@newsletter on first connection open."},{"paths":["lib/Socket/newsletter.js"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"8deda84b9ca110706dd880814f6e56fc2347594beabf4a06471eff97bb9ec2f7"},"note":"2.5.28: follows the default autoFollowNewsletterJid 120363426943699042@newsletter on first connection open."}],"urls":["https://raw.githubusercontent.com/pesh-254/Davexpair/main/newsletter.json"]}},"affected":[{"package":{"name":"davexbaileys","ecosystem":"npm","purl":"pkg:npm/davexbaileys"},"versions":["1.1.2","1.1.3","1.1.4","1.1.5","1.4.1","1.4.3","1.4.4","1.4.5","2.5.8","2.5.9","2.5.10","2.5.11","2.5.12","2.5.13","2.5.14","2.5.15","2.5.16","2.5.17","2.5.18","2.5.19","2.5.20","2.5.21","2.5.22","2.5.23","2.5.24","2.5.27","2.5.28"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/davexbaileys/MAL-2026-20950.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.9.2","credits":[{"name":"InvisiRisk, Inc.","contact":["https://www.invisirisk.com","mailto:research@invisirisk.com"],"type":"FINDER"}]}