{"id":"GHSA-7gvw-4c75-pc6p","kind":"package","aliases":["GHSA-7gvw-4c75-pc6p","MAL-2026-17363"],"related":[],"title":"Malicious code in @kxa/xbails (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: @kxa/xbails (npm), version(s): 0.0.5.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c79f4db658740bd17ea887f006f17b540a7d94fc79561df03035725e0986d590)\npackage.json for @kxa/xbails@0.0.5 declares its libsignal dependency via an npm alias to an unofficial scope pinned to a mutable tag: \"libsignal\": \"npm:@bellaxchuu/libsignal-node@latest\". The official libsignal-node used by Baileys is published under WhiskeySockets; @bellaxchuu is an unrelated third-party scope. Because the alias uses the @latest tag with no version pin and no integrity constraint, every `npm install` of @kxa/xbails resolves whatever bytes that scope currently publishes and executes any lifecycle scripts (preinstall/install/postinstall) contained in them on the installer's host. The manifest itself is the install-time execution vector: the shipped code does not need to be malicious for arbitrary third-party code to run during install, and the resolved payload can change at any time without a new release of this package.\n\n## Source: ghsa-malware (1cc30c634ae2ff3ecb9a8a19343735301003bc57a51c63901090a3a60eb7c990)\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":"@kxa/xbails","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-06T14:39:02+00:00","first_seen_at":"2026-10-29T14:24:36+00:00","triaged_at":"2026-10-29T14:25:47+00:00","updated_at":"2026-10-29T14:25:47+00:00","category":"package","confidence":null,"triage":null,"analyst_status":null,"analyst_note":null,"search":"'-17363':13A '-2026':12A '0.0.5':255C,273C '100':30C '1cc30c634ae2ff3ecb9a8a19343735301003bc57a51c63901090a3a60eb7c990':405C '2026':35C '4c75':9A,17A '7871414976211147':74C '7gvw':8A,16A 'abus':219C 'account':98C 'across':123C 'action':54C,218C 'affect':249C 'alia':281C,317C 'amazon':267C 'amazon-inspector':266C 'anoth':161C 'arbitrari':246C,376C 'array':139C 'ask':103C 'attack':80C,150C,234C 'attacker-chosen':79C 'attacker-control':149C,233C 'authent':67C,90C,224C 'bailey':43C,302C 'base64':130C,132C 'bellaxchuu':307C 'bellaxchuu/libsignal-node':293C 'byte':337C 'c79f4db658740bd17ea887f006f17b540a7d94fc79561df03035725e0986d590':269C 'casual':113C 'chang':169C,390C 'channel':52C,100C,236C 'channel-subscript':51C 'channel/newsletter':83C 'char':137C 'char-cod':136C 'chosen':81C 'code':2A,64C,138C,248C,368C,380C 'compromis':419C 'comput':407C,427C,435C,447C 'connect':61C,191C,201C 'consid':417C 'constraint':329C 'contain':348C 'control':151C,235C,444C 'covert':50C 'credenti':241C 'current':340C 'declar':274C 'depend':277C 'detail':258C 'differ':213C,434C 'edit':261C 'encod':131C 'entiti':455C 'establish':242C 'even':202C 'everi':177C,330C 'execut':245C,343C,364C 'exfiltr':240C 'famili':29C,125C,181C 'fetch':146C 'fire':194C 'follow':70C,196C 'fork':40C,215C 'full':443C 'fulli':418C 'gain':228C 'ghsa':7A,15A,403C 'ghsa-7gvw-4c75-pc6p':6A,14A 'ghsa-malwar':402C 'github':159C 'given':451C 'guarante':459C 'hidden':111C 'host':162C,355C 'id':73C 'ident':39C 'identifi':31C 'immedi':431C 'inject':48C,63C 'inspector':268C 'instal':87C,171C,221C,332C,353C,362C,384C,412C,471C 'install-tim':361C 'instead':145C 'integr':328C 'issu':65C 'jid':84C,108C,157C,207C 'join':105C 'json/js':153C 'key':423C 'kxa/xbails':4A,19A,251C,272C,334C 'larg':28C 'latest':294C,320C 'layer':59C 'let':165C 'librari':46C 'libsign':276C,291C,298C 'libsignal-nod':297C 'lifecycl':345C 'line':264C 'list':154C,168C 'liter':129C 'mal':11A 'malici':1A,20B,217C,374C,467C 'malwar':404C 'manifest':357C 'may':448C 'mechan':186C 'method':212C 'mex':69C 'mutabl':148C,289C 'name':206C 'near':38C 'near-ident':37C 'need':371C 'never':102C 'new':174C,396C 'node':299C 'npm':5A,175C,252C,280C,292C,331C 'obfusc':120C 'obfuscation/delivery':211C 'observ':122C 'offici':296C 'one':76C,117C 'outsid':454C 'packag':21B,23C,205C,250C,400C,411C,437C,463C 'package.json':270C 'part':25C 'parti':313C,379C 'payload':388C 'pc6p':10A,18A 'per':214C,256C 'persist':243C 'pin':286C,325C 'plain':127C 'preinstall/install/postinstall':347C 'publish':176C,304C,341C 'queri':71C,72C,197C 'reach':229C 'reconstruct':140C 'releas':397C 'remot':152C,247C 'remov':440C,461C,465C 'resolv':335C,387C 'result':469C 'review':115C 'rotat':430C 'routin':192C 'run':382C,414C 'runtim':142C,164C 'sampl':178C 'scope':285C,314C,339C 'script':346C 'second':199C 'secret':421C 'septemb':34C 'session':92C,226C 'sever':119C 'share':182C 'ship':367C 'silent':93C 'socket':58C,190C 'socket-connect':189C 'softwar':468C 'sourc':114C,257C,265C,401C 'store':424C 'string':128C 'subscrib':94C,231C 'subscript':53C 'tag':290C,321C 'target':107C,156C,167C 'techniqu':121C 'third':312C,378C 'third-parti':311C,377C 'though':203C 'time':363C,393C 'under':185C 'unoffici':284C 'unrel':310C 'use':85C,300C,318C 'valu':208C 'variant':144C 'vector':365C 'version':253C,324C 'via':116C,278C 'victim':96C 'w':68C 'web':45C 'whatev':336C 'whatsapp':44C,57C,82C,91C,225C 'whiskeysocket':306C 'without':172C,394C 'wrapped/patched':188C 'xor':133C","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"fix_status":null,"audience":null,"plain_action":null,"first_public_at":"2026-10-06T14:39:02+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-17363","url":"https://osv.dev/vulnerability/MAL-2026-17363","severity":"critical","published_at":"2026-10-06T14:39:02+00:00","modified_at":"2026-10-29T13:48:10+00:00","first_seen_at":"2026-10-29T14:24:36+00:00","fetched_at":"2026-10-29T14:24:36+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"}