{"id":"MAL-2026-18807","summary":"Malicious code in @baileys-md/baileys (npm)","details":"@baileys-md/baileys is a fork of the Baileys WhatsApp Web library. In version 12.2.0, makeNewsletterSocket in lib/Socket/newsletter.js starts a timer that, 80 seconds after the socket is created, sends the WhatsApp w:mex FOLLOW query for the channels 120363419781122699@newsletter and 120363388692253922@newsletter through the user's authenticated session, with errors swallowed and without telling the user. Releases 12.2.1 to 12.3.2 ship the same block commented out, so they are not listed. Same behaviour as the PhantomSub family (MAL-2026-17342).","modified":"2026-11-09T23:15:18.652384551Z","published":"2026-10-27T00:00:00Z","database_specific":{"iocs":{"files":[{"paths":["lib/Socket/newsletter.js"],"digests":{"sha256":"570bc0a3e412b1f478e00b2f108b27e69838817fa5c03d379120c1c723265492"}}],"ips":[],"urls":[],"domains":[]}},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@baileys-md/baileys"},{"type":"WEB","url":"https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/"}],"affected":[{"package":{"name":"@baileys-md/baileys","ecosystem":"npm","purl":"pkg:npm/%40baileys-md/baileys"},"versions":["12.2.0"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@baileys-md/baileys/MAL-2026-18807.json"}}],"schema_version":"1.9.2","credits":[{"name":"CyberXYZ","contact":["https://cyberxyz.io"],"type":"FINDER"}]}