{"id":"MAL-2026-19946","summary":"Malicious code in @xzvbailss/baileys (npm)","details":"@xzvbailss/baileys is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. makeNewsletterSocket in lib/Socket/newsletter.js declares a hardcoded list of channel IDs (120363430764800148@newsletter) and a setTimeout that, 2.5 minutes after every socket creation, calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each entry with the victim's authenticated session, 5 seconds apart, swallowing errors. Nothing is shown to the user. Version 6.0.0, published 2026-11-11T19:16Z, keeps the same channel but hides its ID as a base64 string (MTIwMzYzNDMwNzY0ODAwMTQ4QG5ld3NsZXR0ZXI=, decoded at load) and moves the trigger: on every connection.update with connection 'open' it waits 90 seconds and sends the same FOLLOW query, logging failures only at debug level. Same behaviour as the PhantomSub family (MAL-2026-17342). lib/Socket/luxu.js (sha256 cd8e9549dbf382dc7dd32a9c1cd2eb98c8db2bd5a97a0df9a77e4062429053e3) is byte-identical to the file of the same name in @poucode/baileys (MAL-2026-18873) and contains the literal string \"POUCODE\", so the two forks share a toolkit. The package.json repository field is a Telegram link (https://t.me/JustRxVz), not a source repository. The same publisher's unscoped xzvbailss is MAL-2026-18702.","modified":"2026-11-16T05:15:03.516159021Z","published":"2026-11-11T00:00:00Z","database_specific":{"iocs":{"files":[{"digests":{"sha256":"85897f45320a01318adbb7fd825d456fef59c6108be6de88d49cd81246ea4f3e"},"paths":["lib/Socket/newsletter.js"]},{"paths":["lib/Socket/newsletter.js"],"digests":{"sha256":"b305b28fc0e935d4a7aa8f99f6fa8020b47a1b63417d018ef3bf916c832f28c8"}}],"ips":[],"urls":[],"domains":[]}},"references":[{"type":"WEB","url":"https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/"}],"affected":[{"package":{"name":"@xzvbailss/baileys","ecosystem":"npm","purl":"pkg:npm/%40xzvbailss/baileys"},"versions":["1.0.0","5.0.0","6.0.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/@xzvbailss/baileys/MAL-2026-19946.json"}}],"schema_version":"1.9.2","credits":[{"name":"CyberXYZ","contact":["https://cyberxyz.io"],"type":"FINDER"}]}