{"id":"GHSA-4327-j8v7-q48w","kind":"package","aliases":["GHSA-4327-j8v7-q48w","MAL-2026-17381"],"related":[],"title":"Malicious code in @wanzlonely/bails4u (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: @wanzlonely/bails4u (npm), version(s): 5.0.0, 4.0.0, 3.0.0, 2.0.0.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5d496ed2775d23d1d9e2a557ca88aaedbcc6b68b89d5f0f7cd54f1092ab431cf)\npackage.json declares `libsignal` as `github:wanzchil/libsignal-node` with no commit SHA, tag, or semver pin. On `npm install`, this dependency source is resolved to the current HEAD of that GitHub repository, fetched, and installed — including execution of any lifecycle scripts (preinstall/install/postinstall/prepare) present in that repo's tree at the moment of resolution. There is no integrity check and no version pinning, so the code executed on the installer's machine at install time is whatever the owner of `wanzchil/libsignal-node` has pushed to the default branch at that instant, and can change from install to install without any change to this package. This is an off-registry dependency source: the manifest itself is the installation vector, independent of the current contents of the referenced repository.\n\n## Source: ghsa-malware (afb2519b56c1c9a523a805513ef38a843b8646ee0445aeeb0545e806af8ab67f)\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":"@wanzlonely/bails4u","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-12T15:59:57+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:25:47+00:00","category":"package","confidence":null,"triage":null,"analyst_status":null,"analyst_note":null,"search":"'-17381':13A '-2026':12A '-4327':7A,15A '100':30C '2.0.0':258C '2026':35C '3.0.0':257C '4.0.0':256C '5.0.0':255C '5d496ed2775d23d1d9e2a557ca88aaedbcc6b68b89d5f0f7cd54f1092ab431cf':272C '7871414976211147':74C 'abus':219C 'account':98C 'across':123C 'action':54C,218C 'afb2519b56c1c9a523a805513ef38a843b8646ee0445aeeb0545e806af8ab67f':401C 'affect':249C 'amazon':270C 'amazon-inspector':269C 'anoth':161C 'arbitrari':246C 'array':139C 'ask':103C 'attack':80C,150C,234C 'attacker-chosen':79C 'attacker-control':149C,233C 'authent':67C,90C,224C 'bailey':43C 'base64':130C,132C 'branch':356C 'casual':113C 'chang':169C,362C,369C 'channel':52C,100C,236C 'channel-subscript':51C 'channel/newsletter':83C 'char':137C 'char-cod':136C 'check':328C 'chosen':81C 'code':2A,64C,138C,248C,335C 'commit':281C 'compromis':415C 'comput':403C,423C,431C,443C 'connect':61C,191C,201C 'consid':413C 'content':392C 'control':151C,235C,440C 'covert':50C 'credenti':241C 'current':297C,391C 'declar':274C 'default':355C 'depend':291C,379C 'detail':261C 'differ':213C,430C 'edit':264C 'encod':131C 'entiti':451C 'establish':242C 'even':202C 'everi':177C 'execut':245C,307C,336C 'exfiltr':240C 'famili':29C,125C,181C 'fetch':146C,303C 'fire':194C 'follow':70C,196C 'fork':40C,215C 'full':439C 'fulli':414C 'gain':228C 'ghsa':6A,14A,399C 'ghsa-malwar':398C 'github':159C,277C,301C 'given':447C 'guarante':455C 'head':298C 'hidden':111C 'host':162C 'id':73C 'ident':39C 'identifi':31C 'immedi':427C 'includ':306C 'independ':388C 'inject':48C,63C 'inspector':271C 'instal':87C,171C,221C,289C,305C,339C,343C,364C,366C,386C,408C,467C 'instant':359C 'instead':145C 'integr':327C 'issu':65C 'j8v7':9A,17A 'j8v7-q48w':8A,16A 'jid':84C,108C,157C,207C 'join':105C 'json/js':153C 'key':419C 'larg':28C 'layer':59C 'let':165C 'librari':46C 'libsign':275C 'lifecycl':310C 'line':267C 'list':154C,168C 'liter':129C 'machin':341C 'mal':11A 'malici':1A,20B,217C,463C 'malwar':400C 'manifest':382C 'may':444C 'mechan':186C 'method':212C 'mex':69C 'moment':321C 'mutabl':148C 'name':206C 'near':38C 'near-ident':37C 'never':102C 'new':174C 'npm':5A,175C,252C,288C 'obfusc':120C 'obfuscation/delivery':211C 'observ':122C 'off-registri':376C 'one':76C,117C 'outsid':450C 'owner':348C 'packag':21B,23C,205C,250C,372C,407C,433C,459C 'package.json':273C 'part':25C 'per':214C,259C 'persist':243C 'pin':286C,332C 'plain':127C 'preinstall/install/postinstall/prepare':312C 'present':313C 'publish':176C 'push':352C 'q48w':10A,18A 'queri':71C,72C,197C 'reach':229C 'reconstruct':140C 'referenc':395C 'registri':378C 'remot':152C,247C 'remov':436C,457C,461C 'repo':316C 'repositori':302C,396C 'resolut':323C 'resolv':294C 'result':465C 'review':115C 'rotat':426C 'routin':192C 'run':410C 'runtim':142C,164C 'sampl':178C 'script':311C 'second':199C 'secret':417C 'semver':285C 'septemb':34C 'session':92C,226C 'sever':119C 'sha':282C 'share':182C 'silent':93C 'socket':58C,190C 'socket-connect':189C 'softwar':464C 'sourc':114C,260C,268C,292C,380C,397C 'store':420C 'string':128C 'subscrib':94C,231C 'subscript':53C 'tag':283C 'target':107C,156C,167C 'techniqu':121C 'though':203C 'time':344C 'tree':318C 'under':185C 'use':85C 'valu':208C 'variant':144C 'vector':387C 'version':253C,331C 'via':116C 'victim':96C 'w':68C 'wanzchil/libsignal-node':278C,350C 'wanzlonely/bails4u':4A,19A,251C 'web':45C 'whatev':346C 'whatsapp':44C,57C,82C,91C,225C 'without':172C,367C '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-12T15:59:57+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-17381","url":"https://osv.dev/vulnerability/MAL-2026-17381","severity":"critical","published_at":"2026-10-12T15:59:57+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"}