{"id":"MAL-2026-18851","summary":"Malicious code in @jiancodes/baileys (npm)","details":"@jiancodes/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. When the socket connects, code in lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) 120363399266188954@newsletter, 120363402472932012@newsletter (stored as base64 strings), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).","modified":"2026-11-09T23:15:22.629717187Z","published":"2026-10-27T00:00:00Z","database_specific":{"iocs":{"files":[{"digests":{"sha256":"16f09ef72fd2072d905d72bf8d9dc0c91e682a77ca5ffc4c1a188224cc094582"},"paths":["lib/Socket/newsletter.js"]},{"digests":{"sha256":"707f3ba740bbfd904bf2f3500e9b8c8ecd71e8e674f0f03806e6c7e8355b6e5a"},"paths":["lib/Socket/newsletter.js"]},{"paths":["lib/Socket/newsletter.js"],"digests":{"sha256":"a32c4b7f3b110da4ac03b33260347179971b349f49c7b62bcf3c1c40f29cc848"}}],"ips":[],"urls":[],"domains":[]}},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@jiancodes/baileys"},{"type":"WEB","url":"https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/"}],"affected":[{"package":{"name":"@jiancodes/baileys","ecosystem":"npm","purl":"pkg:npm/%40jiancodes/baileys"},"versions":["1.7.3","1.7.4","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.9"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@jiancodes/baileys/MAL-2026-18851.json"}}],"schema_version":"1.9.2","credits":[{"name":"CyberXYZ","contact":["https://cyberxyz.io"],"type":"FINDER"}]}