{"id":"MAL-2026-17399","kind":"package","aliases":["MAL-2026-17399"],"related":[],"title":"Malicious code in monte-md-baileys (npm)","description":"This package is part of a large family (100+ identified as of September 2026) of near-identical\nforks of the Baileys WhatsApp Web library that inject a covert channel-subscription action into\nthe WhatsApp socket layer. On connect, the injected code issues an authenticated `w:mex` FOLLOW\nquery (query_id 7871414976211147) against one or more attacker-chosen WhatsApp Channel/Newsletter\nJIDs, using the installer's own authenticated WhatsApp session -- silently subscribing the\nvictim's account to channels it never asked to join.\n\nThe target JID(s) are hidden from casual source review via one of several obfuscation techniques\nobserved across the family: a plain string literal, base64 encoding, base64+XOR, or a char-code\narray reconstructed at runtime. Some variants instead fetch a mutable, attacker-controlled remote\nJSON/JS list of target JIDs from GitHub or another host at runtime, letting the target list change\nafter installation without a new npm publish. Every sample in the family shares the same underlying\nmechanism (a wrapped/patched socket-connect routine that fires the FOLLOW query some seconds after\nconnect), even though the package name, JID value(s), and obfuscation/delivery method differ per\nfork.\n\nThe malicious action abuses the installer's own authenticated WhatsApp session to gain reach and\nsubscribers for attacker-controlled channels; it does not exfiltrate credentials, establish\npersistence, or execute arbitrary remote code.\n\nAffected package: monte-md-baileys (npm), version(s): 1.0.0.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (489128924ea1bbd77b6e22bb1e8e2457b3e8c2c97caceb78d5fa3a029cde5104)\nmonte-md-baileys is a fork of the Baileys WhatsApp library. In lib/Socket/newsletter.js, a ws.on('open') handler silently issues a newsletter FOLLOW query for a hardcoded JID (120363407598531220@newsletter) one second after the WhatsApp WebSocket connects, causing the installer's authenticated WhatsApp session to auto-subscribe to the maintainer's channel. The behavior is not disclosed in the README and fires on every socket connect. No credential exfiltration, remote code execution, filesystem persistence, or environment scraping is observed; the covert side-effect is confined to a reach-padding action performed with the installer's WhatsApp identity.","summary":null,"severity":"critical","cvss":null,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"monte-md-baileys","fixed":[],"affected":"all versions","ecosystem":"npm"}],"ecosystems":["npm"],"tags":["malicious","package"],"not_affected_if":[],"how_to_check":null,"fix":null,"status":"open","published_at":"2026-10-29T13:34:51+00:00","first_seen_at":"2026-10-29T14:24:37+00:00","triaged_at":"2026-10-29T14:25:47+00:00","updated_at":"2026-10-29T14:30:57+00:00","category":"package","confidence":null,"triage":null,"analyst_status":null,"analyst_note":null,"search":"'-17399':11A,14A '-2026':10A,13A '1.0.0':257C '100':29C '120363407598531220':300C '2026':34C '489128924ea1bbd77b6e22bb1e8e2457b3e8c2c97caceb78d5fa3a029cde5104':271C '7871414976211147':73C 'abus':218C 'account':97C 'across':122C 'action':53C,217C,364C 'affect':248C 'amazon':269C 'amazon-inspector':268C 'anoth':160C 'arbitrari':245C 'array':138C 'ask':102C 'attack':79C,149C,233C 'attacker-chosen':78C 'attacker-control':148C,232C 'authent':66C,89C,223C,313C 'auto':318C 'auto-subscrib':317C 'bailey':7A,42C,253C,275C,281C 'baileys':18A 'base64':129C,131C 'behavior':326C 'casual':112C 'caus':309C 'chang':168C 'channel':51C,99C,235C,324C 'channel-subscript':50C 'channel/newsletter':82C 'char':136C 'char-cod':135C 'chosen':80C 'code':2A,63C,137C,247C,343C 'confin':358C 'connect':60C,190C,200C,308C,338C 'control':150C,234C 'covert':49C,353C 'credenti':240C,340C 'detail':260C 'differ':212C 'disclos':329C 'edit':263C 'effect':356C 'encod':130C 'environ':348C 'establish':241C 'even':201C 'everi':176C,336C 'execut':244C,344C 'exfiltr':239C,341C 'famili':28C,124C,180C 'fetch':145C 'filesystem':345C 'fire':193C,334C 'follow':69C,195C,294C 'fork':39C,214C,278C 'gain':227C 'github':158C 'handler':289C 'hardcod':298C 'hidden':110C 'host':161C 'id':72C 'ident':38C,371C 'identifi':30C 'inject':47C,62C 'inspector':270C 'instal':86C,170C,220C,311C,368C 'instead':144C 'issu':64C,291C 'jid':83C,107C,156C,206C,299C 'join':104C 'json/js':152C 'larg':27C 'layer':58C 'let':164C 'lib/socket/newsletter.js':285C 'librari':45C,283C 'line':266C 'list':153C,167C 'liter':128C 'maintain':322C 'mal':9A,12A 'malici':1A,19B,216C 'md':6A,17A,252C,274C 'mechan':185C 'method':211C 'mex':68C 'mont':5A,251C,273C 'monte':16A 'monte-md-bailey':4A,250C,272C 'monte-md-baileys':15A 'mutabl':147C 'name':205C 'near':37C 'near-ident':36C 'never':101C 'new':173C 'newslett':293C,301C 'npm':8A,174C,254C 'obfusc':119C 'obfuscation/delivery':210C 'observ':121C,351C 'one':75C,116C,302C 'open':288C 'packag':20B,22C,204C,249C 'pad':363C 'part':24C 'per':213C,258C 'perform':365C 'persist':242C,346C 'plain':126C 'publish':175C 'queri':70C,71C,196C,295C 'reach':228C,362C 'reach-pad':361C 'readm':332C 'reconstruct':139C 'remot':151C,246C,342C 'review':114C 'routin':191C 'runtim':141C,163C 'sampl':177C 'scrape':349C 'second':198C,303C 'septemb':33C 'session':91C,225C,315C 'sever':118C 'share':181C 'side':355C 'side-effect':354C 'silent':92C,290C 'socket':57C,189C,337C 'socket-connect':188C 'sourc':113C,259C,267C 'string':127C 'subscrib':93C,230C,319C 'subscript':52C 'target':106C,155C,166C 'techniqu':120C 'though':202C 'under':184C 'use':84C 'valu':207C 'variant':143C 'version':255C 'via':115C 'victim':95C 'w':67C 'web':44C 'websocket':307C 'whatsapp':43C,56C,81C,90C,224C,282C,306C,314C,370C 'without':171C 'wrapped/patched':187C 'ws.on':287C 'xor':132C","nicknames":[],"mitigations":[],"who_affected":null,"tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":null,"audience":null,"plain_action":null,"first_public_at":"2026-10-29T13:34:51+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-17399","url":"https://osv.dev/vulnerability/MAL-2026-17399","severity":"critical","published_at":"2026-10-29T13:34:51+00:00","modified_at":"2026-10-29T13:48:10+00:00","first_seen_at":"2026-10-29T14:24:37+00:00","fetched_at":"2026-10-29T14:24:37+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}