{"id":"GHSA-448p-gp86-49g8","kind":"package","aliases":["GHSA-448p-gp86-49g8","MAL-2026-17406"],"related":[],"title":"Malicious code in spencer-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: spencer-baileys (npm), version(s): 1.0.4.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c27259b440b135998422200620b1a73ccf25f6fe7a5a082bb25d37156023732c)\nThis package is a fork of the Baileys WhatsApp library that wires an undocumented remote-control routine into the default socket factory. 90 seconds after an authenticated WhatsApp connection is established, the newsletter socket module fetches a JSON command list from https://savage-prox.onrender.com/api/v1/links and uses the installer's authenticated WhatsApp session to auto-accept group invite codes (sock.groupAcceptInvite) and auto-follow channel JIDs (w:mex FOLLOW iq, query_id 7871414976211147) specified by the remote operator. The routine re-polls every 3 hours (setInterval 3*60*60*1000). The destination URL is stored as a base64 literal and decoded at runtime, with a source comment explicitly labeling it 'Obfuscated API URL'. Neither the endpoint, the auto-join/follow behavior, nor the periodic polling are documented in the README. Consumers of this library — bots and applications using it as a drop-in Baileys replacement — will have their WhatsApp accounts driven by whoever controls savage-prox.onrender.com, exposing the account's phone number to attacker-chosen group participants and amplifying attacker channels through the installer's identity.\n\n## Source: ghsa-malware (07fb7412ff24a83e6ee6af840ab987d9e7fb3fb95ed5f665907de73906d628f3)\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":"spencer-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-16T17:59:19+00:00","first_seen_at":"2026-11-16T19:06:42+00:00","triaged_at":"2026-11-16T19:08:03+00:00","updated_at":"2026-11-16T23:37:17+00:00","category":"package","confidence":null,"triage":null,"analyst_status":null,"analyst_note":null,"search":"'-17406':15A '-2026':14A '/api/v1/links':320C '/follow':398C '07fb7412ff24a83e6ee6af840ab987d9e7fb3fb95ed5f665907de73906d628f3':460C '1.0.4':261C '100':34C '1000':367C '2026':39C '3':361C,364C '448p':10A,18A '49g8':12A,20A '60':365C,366C '7871414976211147':78C,349C '90':299C 'abus':223C 'accept':332C 'account':102C,429C,437C 'across':127C 'action':58C,222C 'affect':253C 'amazon':273C 'amazon-inspector':272C 'amplifi':448C 'anoth':165C 'api':389C 'applic':415C 'arbitrari':250C 'array':143C 'ask':107C 'attack':84C,154C,238C,443C,449C 'attacker-chosen':83C,442C 'attacker-control':153C,237C 'authent':71C,94C,228C,303C,326C 'auto':331C,339C,396C 'auto-accept':330C 'auto-follow':338C 'auto-join':395C 'bailey':6A,47C,257C,283C,423C 'baileys':23A 'base64':134C,136C,375C 'behavior':399C 'bot':413C 'c27259b440b135998422200620b1a73ccf25f6fe7a5a082bb25d37156023732c':275C 'casual':117C 'chang':173C 'channel':56C,104C,240C,341C,450C 'channel-subscript':55C 'channel/newsletter':87C 'char':141C 'char-cod':140C 'chosen':85C,444C 'code':2A,68C,142C,252C,335C 'command':315C 'comment':384C 'compromis':474C 'comput':462C,482C,490C,502C 'connect':65C,195C,205C,305C 'consid':472C 'consum':409C 'control':155C,239C,292C,433C,499C 'covert':54C 'credenti':245C 'decod':378C 'default':296C 'destin':369C 'detail':264C 'differ':217C,489C 'document':405C 'driven':430C 'drop':421C 'drop-in':420C 'edit':267C 'encod':135C 'endpoint':393C 'entiti':510C 'establish':246C,307C 'even':206C 'everi':181C,360C 'execut':249C 'exfiltr':244C 'explicit':385C 'expos':435C 'factori':298C 'famili':33C,129C,185C 'fetch':150C,312C 'fire':198C 'follow':74C,200C,340C,345C 'fork':44C,219C,280C 'full':498C 'fulli':473C 'gain':232C 'ghsa':9A,17A,458C 'ghsa-448p-gp86-49g8':8A,16A 'ghsa-malwar':457C 'github':163C 'given':506C 'gp86':11A,19A 'group':333C,445C 'guarante':514C 'hidden':115C 'host':166C 'hour':362C 'id':77C,348C 'ident':43C,455C 'identifi':35C 'immedi':486C 'inject':52C,67C 'inspector':274C 'instal':91C,175C,225C,324C,453C,467C,526C 'instead':149C 'invit':334C 'iq':346C 'issu':69C 'jid':88C,112C,161C,211C,342C 'join':109C,397C 'json':314C 'json/js':157C 'key':478C 'label':386C 'larg':32C 'layer':63C 'let':169C 'librari':50C,285C,412C 'line':270C 'list':158C,172C,316C 'liter':133C,376C 'mal':13A 'malici':1A,24B,221C,522C 'malwar':459C 'may':503C 'mechan':190C 'method':216C 'mex':73C,344C 'modul':311C 'mutabl':152C 'name':210C 'near':42C 'near-ident':41C 'neither':391C 'never':106C 'new':178C 'newslett':309C 'npm':7A,179C,258C 'number':440C 'obfusc':124C,388C 'obfuscation/delivery':215C 'observ':126C 'one':80C,121C 'oper':354C 'outsid':509C 'packag':25B,27C,209C,254C,277C,466C,492C,518C 'part':29C 'particip':446C 'per':218C,262C 'period':402C 'persist':247C 'phone':439C 'plain':131C 'poll':359C,403C 'publish':180C 'queri':75C,76C,201C,347C 're':358C 're-pol':357C 'reach':233C 'readm':408C 'reconstruct':144C 'remot':156C,251C,291C,353C 'remote-control':290C 'remov':495C,516C,520C 'replac':424C 'result':524C 'review':119C 'rotat':485C 'routin':196C,293C,356C 'run':469C 'runtim':146C,168C,380C 'sampl':182C 'savage-prox.onrender.com':319C,434C 'savage-prox.onrender.com/api/v1/links':318C 'second':203C,300C 'secret':476C 'septemb':38C 'session':96C,230C,328C 'setinterv':363C 'sever':123C 'share':186C 'silent':97C 'sock.groupacceptinvite':336C 'socket':62C,194C,297C,310C 'socket-connect':193C 'softwar':523C 'sourc':118C,263C,271C,383C,456C 'specifi':350C 'spencer':5A,22A,256C 'spencer-bailey':4A,255C 'spencer-baileys':21A 'store':372C,479C 'string':132C 'subscrib':98C,235C 'subscript':57C 'target':111C,160C,171C 'techniqu':125C 'though':207C 'under':189C 'undocu':289C 'url':370C,390C 'use':89C,322C,416C 'valu':212C 'variant':148C 'version':259C 'via':120C 'victim':100C 'w':72C,343C 'web':49C 'whatsapp':48C,61C,86C,95C,229C,284C,304C,327C,428C 'whoever':432C 'wire':287C 'without':176C 'wrapped/patched':192C 'xor':137C","nicknames":[],"mitigations":[],"who_affected":null,"tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":null,"audience":null,"plain_action":null,"pkeys":["spencerbaileys"],"ptokens":["baileys","spencer"],"labels":["critical","malicious","npm","package"],"campaign_type":null,"search_a":"'-17406':15A '-2026':14A '448p':10A,18A '49g8':12A,20A 'bailey':6A 'baileys':23A 'code':2A 'ghsa':9A,17A 'ghsa-448p-gp86-49g8':8A,16A 'gp86':11A,19A 'mal':13A 'malici':1A 'npm':7A 'spencer':5A,22A 'spencer-bailey':4A 'spencer-baileys':21A","search_b":"'malici':24B 'packag':25B","search_c":"'/api/v1/links':320C '/follow':398C '07fb7412ff24a83e6ee6af840ab987d9e7fb3fb95ed5f665907de73906d628f3':460C '1.0.4':261C '100':34C '1000':367C '2026':39C '3':361C,364C '60':365C,366C '7871414976211147':78C,349C '90':299C 'abus':223C 'accept':332C 'account':102C,429C,437C 'across':127C 'action':58C,222C 'affect':253C 'amazon':273C 'amazon-inspector':272C 'amplifi':448C 'anoth':165C 'api':389C 'applic':415C 'arbitrari':250C 'array':143C 'ask':107C 'attack':84C,154C,238C,443C,449C 'attacker-chosen':83C,442C 'attacker-control':153C,237C 'authent':71C,94C,228C,303C,326C 'auto':331C,339C,396C 'auto-accept':330C 'auto-follow':338C 'auto-join':395C 'bailey':47C,257C,283C,423C 'base64':134C,136C,375C 'behavior':399C 'bot':413C 'c27259b440b135998422200620b1a73ccf25f6fe7a5a082bb25d37156023732c':275C 'casual':117C 'chang':173C 'channel':56C,104C,240C,341C,450C 'channel-subscript':55C 'channel/newsletter':87C 'char':141C 'char-cod':140C 'chosen':85C,444C 'code':68C,142C,252C,335C 'command':315C 'comment':384C 'compromis':474C 'comput':462C,482C,490C,502C 'connect':65C,195C,205C,305C 'consid':472C 'consum':409C 'control':155C,239C,292C,433C,499C 'covert':54C 'credenti':245C 'decod':378C 'default':296C 'destin':369C 'detail':264C 'differ':217C,489C 'document':405C 'driven':430C 'drop':421C 'drop-in':420C 'edit':267C 'encod':135C 'endpoint':393C 'entiti':510C 'establish':246C,307C 'even':206C 'everi':181C,360C 'execut':249C 'exfiltr':244C 'explicit':385C 'expos':435C 'factori':298C 'famili':33C,129C,185C 'fetch':150C,312C 'fire':198C 'follow':74C,200C,340C,345C 'fork':44C,219C,280C 'full':498C 'fulli':473C 'gain':232C 'ghsa':458C 'ghsa-malwar':457C 'github':163C 'given':506C 'group':333C,445C 'guarante':514C 'hidden':115C 'host':166C 'hour':362C 'id':77C,348C 'ident':43C,455C 'identifi':35C 'immedi':486C 'inject':52C,67C 'inspector':274C 'instal':91C,175C,225C,324C,453C,467C,526C 'instead':149C 'invit':334C 'iq':346C 'issu':69C 'jid':88C,112C,161C,211C,342C 'join':109C,397C 'json':314C 'json/js':157C 'key':478C 'label':386C 'larg':32C 'layer':63C 'let':169C 'librari':50C,285C,412C 'line':270C 'list':158C,172C,316C 'liter':133C,376C 'malici':221C,522C 'malwar':459C 'may':503C 'mechan':190C 'method':216C 'mex':73C,344C 'modul':311C 'mutabl':152C 'name':210C 'near':42C 'near-ident':41C 'neither':391C 'never':106C 'new':178C 'newslett':309C 'npm':179C,258C 'number':440C 'obfusc':124C,388C 'obfuscation/delivery':215C 'observ':126C 'one':80C,121C 'oper':354C 'outsid':509C 'packag':27C,209C,254C,277C,466C,492C,518C 'part':29C 'particip':446C 'per':218C,262C 'period':402C 'persist':247C 'phone':439C 'plain':131C 'poll':359C,403C 'publish':180C 'queri':75C,76C,201C,347C 're':358C 're-pol':357C 'reach':233C 'readm':408C 'reconstruct':144C 'remot':156C,251C,291C,353C 'remote-control':290C 'remov':495C,516C,520C 'replac':424C 'result':524C 'review':119C 'rotat':485C 'routin':196C,293C,356C 'run':469C 'runtim':146C,168C,380C 'sampl':182C 'savage-prox.onrender.com':319C,434C 'savage-prox.onrender.com/api/v1/links':318C 'second':203C,300C 'secret':476C 'septemb':38C 'session':96C,230C,328C 'setinterv':363C 'sever':123C 'share':186C 'silent':97C 'sock.groupacceptinvite':336C 'socket':62C,194C,297C,310C 'socket-connect':193C 'softwar':523C 'sourc':118C,263C,271C,383C,456C 'specifi':350C 'spencer':256C 'spencer-bailey':255C 'store':372C,479C 'string':132C 'subscrib':98C,235C 'subscript':57C 'target':111C,160C,171C 'techniqu':125C 'though':207C 'under':189C 'undocu':289C 'url':370C,390C 'use':89C,322C,416C 'valu':212C 'variant':148C 'version':259C 'via':120C 'victim':100C 'w':72C,343C 'web':49C 'whatsapp':48C,61C,86C,95C,229C,284C,304C,327C,428C 'whoever':432C 'wire':287C 'without':176C 'wrapped/patched':192C 'xor':137C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T17:59:19+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-17406","url":"https://osv.dev/vulnerability/MAL-2026-17406","severity":"critical","published_at":"2026-11-16T17:59:19+00:00","modified_at":"2026-11-16T22:45:05+00:00","first_seen_at":"2026-11-16T19:06:42+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"}