{"id":"MAL-2026-19946","kind":"package","aliases":["GHSA-4hv9-79qp-g8gc","MAL-2026-19946"],"related":[],"title":"Malicious code in @xzvbailss/baileys (npm)","description":"@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.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fa5ebfe51059f32f1fa37ff08f6b754b2115d5a4e1dab56cf653c255bf3e4596)\nThis fork of the Baileys WhatsApp library declares `@xzvbailss/xzgateway: \"latest\"` as a required dependency and `@xzvbailss/xz-protect: \"latest\"` as an optional dependency. The `latest` dist-tag is mutable and under the same author's control, with no version pin and no integrity check. `Utils/crypto.js`, `Utils/lt-hash.js`, and `Utils/chat-utils.js` import symbols (`md5`, `hkdf`, `LTHashAntiTampering`, `expandAppStateKeys`) from `@xzvbailss/xzgateway` at top level, so whatever code the author publishes under that name runs inside the installer's process on `require('@xzvbailss/baileys')`. `Socket/index.js` additionally performs `import('@xzvbailss/xz-protect')` when `AnchorGuard` is enabled and passes the live WhatsApp socket to `createAntiBugGuard`. The imported helpers are on the path that derives WhatsApp Noise/AppState encryption keys, so a future publish to either dist-tag can execute arbitrary code with access to the installer's host and intercept the installer's WhatsApp keys. Separately, on every successful connection open the library silently calls `sock.newsletterFollow('120363430764800148@newsletter')` (up to 3 attempts) under the installer's logged-in WhatsApp account, documented only as an opt-out via `autoFollowNewsletters: false`, using the installer's identity for reach-padding of an author-controlled channel.\n\n## Source: ghsa-malware (3173797a6fee06c2e8a57b38c60381aeaac58da5ac50684b71db47ee41be80c6)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.","summary":null,"severity":"critical","cvss":null,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"@xzvbailss/baileys","fixed":[],"affected":"= 1.0.0; = 5.0.0; = 6.0.0","ecosystem":"npm"},{"name":"@xzvbailss/baileys","note":"all versions","fixed":[],"affected":"","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-16T23:37:17+00:00","category":"package","confidence":null,"triage":null,"analyst_status":null,"analyst_note":null,"search":"'-11':97C,98C '-17342':151C '-18702':208C '-18873':170C '-19946':13A,16A '-2026':12A,15A,150C,169C,207C '/justrxvz),':194C '120363430764800148':57C,367C '16z':100C '2.5':63C '2026':96C '3':371C '3173797a6fee06c2e8a57b38c60381aeaac58da5ac50684b71db47ee41be80c6':411C '4hv9':8A '5':82C '6.0.0':94C '79qp':9A '90':129C 'access':343C 'account':39C,381C 'addit':300C 'amazon':220C 'amazon-inspector':219C 'anchorguard':305C 'apart':84C 'arbitrari':340C 'attempt':372C 'authent':80C 'author':255C,285C,404C 'author-control':403C 'autofollownewslett':390C 'bailey':27C,227C 'base64':111C 'behaviour':144C 'byte':157C 'byte-ident':156C 'call':69C,365C 'cd8e9549dbf382dc7dd32a9c1cd2eb98c8db2bd5a97a0df9a77e4062429053e3':154C 'channel':42C,55C,104C,406C 'check':265C 'chosen':43C 'code':2A,283C,341C 'compromis':425C 'comput':413C,433C,441C,453C 'connect':125C,360C 'connection.update':123C 'consid':423C 'contain':172C 'control':257C,405C,450C 'createantibugguard':315C 'creation':68C 'debug':141C 'declar':50C,230C 'decod':114C 'depend':236C,243C 'deriv':324C 'detail':211C 'differ':440C 'dist':247C,336C 'dist-tag':246C,335C 'document':382C 'edit':214C 'either':334C 'enabl':307C 'encrypt':327C 'entiti':461C 'entri':75C 'error':86C 'everi':66C,122C,358C 'execut':339C 'expandappstatekey':275C 'fa5ebfe51059f32f1fa37ff08f6b754b2115d5a4e1dab56cf653c255bf3e4596':222C 'failur':138C 'fals':391C 'famili':148C 'field':187C 'file':161C 'follow':135C 'fork':24C,180C,224C 'full':449C 'fulli':424C 'futur':331C 'g8gc':10A 'ghsa':7A,409C 'ghsa-4hv9-79qp-g8gc':6A 'ghsa-malwar':408C 'given':457C 'guarante':465C 'hardcod':52C 'helper':318C 'hide':106C 'hkdf':273C 'host':348C 'id':56C,71C,108C 'ident':158C,396C 'immedi':437C 'import':270C,302C,317C 'insid':291C 'inspector':221C 'instal':35C,293C,346C,352C,375C,394C,418C,477C 'integr':264C 'intercept':350C 'keep':101C 'key':328C,355C,429C 'latest':232C,239C,245C 'level':142C,280C 'lib/socket/luxu.js':152C 'lib/socket/newsletter.js':49C 'librari':30C,229C,363C 'line':217C 'link':191C 'list':53C 'liter':174C 'live':311C 'load':116C 'log':137C,378C 'logged-in':377C 'lthashantitamp':274C 'makenewslettersocket':47C 'mal':11A,14A,149C,168C,206C 'malici':1A,19B,473C 'malwar':410C 'may':454C 'md5':272C 'minut':64C 'move':118C 'mtiwmzyzndmwnzy0odawmtq4qg5ld3nszxr0zxi':113C 'mutabl':250C 'name':165C,289C 'newslett':58C,368C 'newsletterwmexqueri':70C 'noise/appstate':326C 'noth':87C 'npm':5A 'open':126C,361C 'opt':387C 'opt-out':386C 'option':242C 'outsid':460C 'packag':20B,417C,443C,469C 'package.json':185C 'pad':400C 'pass':309C 'path':322C 'per':209C 'perform':301C 'phantomsub':147C 'pin':261C 'poucod':176C 'poucode/baileys':167C 'process':295C 'publish':46C,95C,201C,286C,332C 'queri':136C 'queryids.follow':72C 'reach':399C 'reach-pad':398C 'remov':446C,467C,471C 'repositori':186C,198C 'requir':235C,297C 'result':475C 'rotat':436C 'run':290C,420C 'second':83C,130C 'secret':427C 'send':132C 'separ':356C 'session':81C 'settimeout':61C 'sha256':153C 'share':181C 'shown':89C 'silent':32C,364C 'sock.newsletterfollow':366C 'socket':67C,313C 'socket/index.js':299C 'softwar':474C 'sourc':197C,210C,218C,407C 'store':430C 'string':112C,175C 'subscrib':33C 'success':359C 'swallow':85C 'symbol':271C 't.me':193C 't.me/justrxvz),':192C 't19':99C 'tag':248C,337C 'telegram':190C 'toolkit':183C 'top':279C 'trigger':120C 'two':179C 'unscop':203C 'use':392C 'user':92C 'utils/chat-utils.js':269C 'utils/crypto.js':266C 'utils/lt-hash.js':267C 'version':93C,260C 'via':389C 'victim':78C 'wait':128C 'web':29C 'whatev':282C 'whatsapp':28C,38C,41C,228C,312C,325C,354C,380C 'xzvbailss':204C 'xzvbailss/baileys':4A,17A,18A,21C,298C 'xzvbailss/xz-protect':238C,303C 'xzvbailss/xzgateway':231C,277C","nicknames":[],"mitigations":[],"who_affected":null,"tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":null,"audience":null,"plain_action":null,"pkeys":["baileys"],"ptokens":["baileys","xzvbailss"],"labels":["critical","malicious","npm","package"],"campaign_type":null,"search_a":"'-19946':13A,16A '-2026':12A,15A '4hv9':8A '79qp':9A 'code':2A 'g8gc':10A 'ghsa':7A 'ghsa-4hv9-79qp-g8gc':6A 'mal':11A,14A 'malici':1A 'npm':5A 'xzvbailss/baileys':4A,17A,18A","search_b":"'malici':19B 'packag':20B","search_c":"'-11':97C,98C '-17342':151C '-18702':208C '-18873':170C '-2026':150C,169C,207C '/justrxvz),':194C '120363430764800148':57C,367C '16z':100C '2.5':63C '2026':96C '3':371C '3173797a6fee06c2e8a57b38c60381aeaac58da5ac50684b71db47ee41be80c6':411C '5':82C '6.0.0':94C '90':129C 'access':343C 'account':39C,381C 'addit':300C 'amazon':220C 'amazon-inspector':219C 'anchorguard':305C 'apart':84C 'arbitrari':340C 'attempt':372C 'authent':80C 'author':255C,285C,404C 'author-control':403C 'autofollownewslett':390C 'bailey':27C,227C 'base64':111C 'behaviour':144C 'byte':157C 'byte-ident':156C 'call':69C,365C 'cd8e9549dbf382dc7dd32a9c1cd2eb98c8db2bd5a97a0df9a77e4062429053e3':154C 'channel':42C,55C,104C,406C 'check':265C 'chosen':43C 'code':283C,341C 'compromis':425C 'comput':413C,433C,441C,453C 'connect':125C,360C 'connection.update':123C 'consid':423C 'contain':172C 'control':257C,405C,450C 'createantibugguard':315C 'creation':68C 'debug':141C 'declar':50C,230C 'decod':114C 'depend':236C,243C 'deriv':324C 'detail':211C 'differ':440C 'dist':247C,336C 'dist-tag':246C,335C 'document':382C 'edit':214C 'either':334C 'enabl':307C 'encrypt':327C 'entiti':461C 'entri':75C 'error':86C 'everi':66C,122C,358C 'execut':339C 'expandappstatekey':275C 'fa5ebfe51059f32f1fa37ff08f6b754b2115d5a4e1dab56cf653c255bf3e4596':222C 'failur':138C 'fals':391C 'famili':148C 'field':187C 'file':161C 'follow':135C 'fork':24C,180C,224C 'full':449C 'fulli':424C 'futur':331C 'ghsa':409C 'ghsa-malwar':408C 'given':457C 'guarante':465C 'hardcod':52C 'helper':318C 'hide':106C 'hkdf':273C 'host':348C 'id':56C,71C,108C 'ident':158C,396C 'immedi':437C 'import':270C,302C,317C 'insid':291C 'inspector':221C 'instal':35C,293C,346C,352C,375C,394C,418C,477C 'integr':264C 'intercept':350C 'keep':101C 'key':328C,355C,429C 'latest':232C,239C,245C 'level':142C,280C 'lib/socket/luxu.js':152C 'lib/socket/newsletter.js':49C 'librari':30C,229C,363C 'line':217C 'link':191C 'list':53C 'liter':174C 'live':311C 'load':116C 'log':137C,378C 'logged-in':377C 'lthashantitamp':274C 'makenewslettersocket':47C 'mal':149C,168C,206C 'malici':473C 'malwar':410C 'may':454C 'md5':272C 'minut':64C 'move':118C 'mtiwmzyzndmwnzy0odawmtq4qg5ld3nszxr0zxi':113C 'mutabl':250C 'name':165C,289C 'newslett':58C,368C 'newsletterwmexqueri':70C 'noise/appstate':326C 'noth':87C 'open':126C,361C 'opt':387C 'opt-out':386C 'option':242C 'outsid':460C 'packag':417C,443C,469C 'package.json':185C 'pad':400C 'pass':309C 'path':322C 'per':209C 'perform':301C 'phantomsub':147C 'pin':261C 'poucod':176C 'poucode/baileys':167C 'process':295C 'publish':46C,95C,201C,286C,332C 'queri':136C 'queryids.follow':72C 'reach':399C 'reach-pad':398C 'remov':446C,467C,471C 'repositori':186C,198C 'requir':235C,297C 'result':475C 'rotat':436C 'run':290C,420C 'second':83C,130C 'secret':427C 'send':132C 'separ':356C 'session':81C 'settimeout':61C 'sha256':153C 'share':181C 'shown':89C 'silent':32C,364C 'sock.newsletterfollow':366C 'socket':67C,313C 'socket/index.js':299C 'softwar':474C 'sourc':197C,210C,218C,407C 'store':430C 'string':112C,175C 'subscrib':33C 'success':359C 'swallow':85C 'symbol':271C 't.me':193C 't.me/justrxvz),':192C 't19':99C 'tag':248C,337C 'telegram':190C 'toolkit':183C 'top':279C 'trigger':120C 'two':179C 'unscop':203C 'use':392C 'user':92C 'utils/chat-utils.js':269C 'utils/crypto.js':266C 'utils/lt-hash.js':267C 'version':93C,260C 'via':389C 'victim':78C 'wait':128C 'web':29C 'whatev':282C 'whatsapp':28C,38C,41C,228C,312C,325C,354C,380C 'xzvbailss':204C 'xzvbailss/baileys':21C,298C 'xzvbailss/xz-protect':238C,303C 'xzvbailss/xzgateway':231C,277C","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-19946","url":"https://osv.dev/vulnerability/MAL-2026-19946","severity":"critical","published_at":"2026-11-11T00:00:00+00:00","modified_at":"2026-11-16T22:45:05+00:00","first_seen_at":"2026-11-16T06:03:36+00:00","fetched_at":"2026-11-16T23:37:17+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"}