{"id":"MAL-2026-19947","kind":"package","aliases":["MAL-2026-19947"],"related":[],"title":"Malicious code in baileys-clean (npm)","description":"baileys-clean 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 contains a self-invoking property named newsletterAutoFollowSilent that registers a connection.update listener at socket creation; 15 seconds after every 'open' it calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each of four hardcoded channel IDs (120363406225530257@newsletter, 120363408101167880@newsletter, 120363419318051000@newsletter, 120363421412174731@newsletter), 3.5 seconds apart, swallowing errors, and then repeats the whole loop every 60 seconds for as long as the socket is open. The README states the fork has no hidden auto-follow and documents an explicit opt-in function, autoFollowOwnerChannels, that does not exist anywhere in the shipped code; the only follow path is the automatic one. Same behaviour as the PhantomSub family (MAL-2026-17342).","summary":null,"severity":"critical","cvss":null,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"baileys-clean","fixed":[],"affected":"= 7.3.2","ecosystem":"npm"}],"ecosystems":["npm"],"tags":["malicious","package"],"not_affected_if":[],"how_to_check":null,"fix":null,"status":"open","published_at":"2026-11-11T00:00:00+00:00","first_seen_at":"2026-11-16T06:03:36+00:00","triaged_at":"2026-11-16T06:03:41+00:00","updated_at":"2026-11-16T06:12:20+00:00","category":"package","confidence":null,"triage":null,"analyst_status":null,"analyst_note":null,"search":"'-17342':158C '-19947':10A,13A '-2026':9A,12A,157C '120363406225530257':83C '120363408101167880':85C '120363419318051000':87C '120363421412174731':89C '15':66C '3.5':91C '60':103C 'account':39C 'anywher':137C 'apart':93C 'auto':122C 'auto-follow':121C 'autofollowownerchannel':132C 'automat':148C 'bailey':5A,20C,27C 'baileys':15A 'baileys-clean':4A,14A,19C 'behaviour':151C 'call':72C 'channel':42C,81C 'chosen':43C 'clean':6A,16A,21C 'code':2A,141C 'connection.update':61C 'contain':50C 'creation':65C 'document':125C 'error':95C 'everi':69C,102C 'exist':136C 'explicit':127C 'famili':155C 'follow':123C,144C 'fork':24C,117C 'four':79C 'function':131C 'hardcod':80C 'hidden':120C 'id':74C,82C 'instal':35C 'invok':54C 'lib/socket/newsletter.js':49C 'librari':30C 'listen':62C 'long':107C 'loop':101C 'makenewslettersocket':47C 'mal':8A,11A,156C 'malici':1A,17B 'name':56C 'newslett':84C,86C,88C,90C 'newsletterautofollowsil':57C 'newsletterwmexqueri':73C 'npm':7A 'one':149C 'open':70C,112C 'opt':129C 'opt-in':128C 'packag':18B 'path':145C 'phantomsub':154C 'properti':55C 'publish':46C 'queryids.follow':75C 'readm':114C 'regist':59C 'repeat':98C 'second':67C,92C,104C 'self':53C 'self-invok':52C 'ship':140C 'silent':32C 'socket':64C,110C 'state':115C 'subscrib':33C 'swallow':94C 'web':29C 'whatsapp':28C,38C,41C 'whole':100C","nicknames":[],"mitigations":[],"who_affected":null,"tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":null,"audience":null,"plain_action":null,"pkeys":["baileysclean"],"ptokens":["baileys","clean"],"labels":["critical","malicious","npm","package"],"campaign_type":null,"search_a":"'-19947':10A,13A '-2026':9A,12A 'bailey':5A 'baileys':15A 'baileys-clean':4A,14A 'clean':6A,16A 'code':2A 'mal':8A,11A 'malici':1A 'npm':7A","search_b":"'malici':17B 'packag':18B","search_c":"'-17342':158C '-2026':157C '120363406225530257':83C '120363408101167880':85C '120363419318051000':87C '120363421412174731':89C '15':66C '3.5':91C '60':103C 'account':39C 'anywher':137C 'apart':93C 'auto':122C 'auto-follow':121C 'autofollowownerchannel':132C 'automat':148C 'bailey':20C,27C 'baileys-clean':19C 'behaviour':151C 'call':72C 'channel':42C,81C 'chosen':43C 'clean':21C 'code':141C 'connection.update':61C 'contain':50C 'creation':65C 'document':125C 'error':95C 'everi':69C,102C 'exist':136C 'explicit':127C 'famili':155C 'follow':123C,144C 'fork':24C,117C 'four':79C 'function':131C 'hardcod':80C 'hidden':120C 'id':74C,82C 'instal':35C 'invok':54C 'lib/socket/newsletter.js':49C 'librari':30C 'listen':62C 'long':107C 'loop':101C 'makenewslettersocket':47C 'mal':156C 'name':56C 'newslett':84C,86C,88C,90C 'newsletterautofollowsil':57C 'newsletterwmexqueri':73C 'one':149C 'open':70C,112C 'opt':129C 'opt-in':128C 'path':145C 'phantomsub':154C 'properti':55C 'publish':46C 'queryids.follow':75C 'readm':114C 'regist':59C 'repeat':98C 'second':67C,92C,104C 'self':53C 'self-invok':52C 'ship':140C 'silent':32C 'socket':64C,110C 'state':115C 'subscrib':33C 'swallow':94C 'web':29C 'whatsapp':28C,38C,41C 'whole':100C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-11T00:00:00+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-19947","url":"https://osv.dev/vulnerability/MAL-2026-19947","severity":"critical","published_at":"2026-11-11T00:00:00+00:00","modified_at":"2026-11-16T05:15:03+00:00","first_seen_at":"2026-11-16T06:03:36+00:00","fetched_at":"2026-11-16T06:03:36+00:00","note":null}],"documents":[],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}