{"id":"GHSA-xwv2-25hq-j64g","kind":"package","aliases":["GHSA-xwv2-25hq-j64g","MAL-2026-17622"],"related":[],"title":"Malicious code in dzyhaxz-baileys (npm)","description":"---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (03631e9889407ee8976e020933fa6984bd173c9a5de6b7a89ba7a5629437e705)\ndzyhaxz-baileys is a fork of the Baileys WhatsApp library that, on every WhatsApp `connection.open` event, silently calls `sock.newsletterFollow` for a hardcoded channel ID `120363411407993897@newsletter` with `autoFollowChannels` defaulting to true. The README explicitly states 'No hidden auto-follow: Channel operations (sock.newsletterFollow) are strictly explicit', directly contradicting the shipped behavior — any application built on this library causes its WhatsApp-authenticated users to follow the author's channel without consent. Separately, `package.json` aliases the Signal protocol crypto library to an author-owned package via a mutable dist-tag: `\"libsignal\": \"npm:dzyhaxz-libsignal@latest\"`, with no version pin. The aliased module provides the ECDH curve primitives used by `lib/Utils/crypto.js` for WhatsApp end-to-end key agreement, and `md5`/`hkdf` are additionally re-exported from the author-controlled `@rexxhayanasi/wangcap-id-bridge`. Each install resolves whatever bytes the publisher currently points `latest` at. The auto-follow uses the installer's WhatsApp identity for reach-padding (no credential theft, no RCE, no account takeover), and the aliased crypto dependency has not been observed to contain malicious bytes in this version — but the combination is a deceptive cover-story and a weaponizable supply-chain shape.\n\n## Source: ghsa-malware (08fd08c1026dee023b11946f939f5fb1c5763566c9577ccb99c2aa7a3c0c2684)\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":"dzyhaxz-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-05T15:41:10+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":"'-17622':15A '-2026':14A '03631e9889407':39C '08fd08c1026dee023b11946f939f5fb1c5763566c9577ccb99c2aa7a3c0c2684':245C '120363411407993897':66C '25hq':11A,19A 'account':207C 'addit':166C 'agreement':161C 'alias':115C,144C,211C 'amazon':37C 'amazon-inspector':36C 'applic':94C 'authent':103C 'author':108C,124C,173C 'author-control':172C 'author-own':123C 'auto':80C,189C 'auto-follow':79C,188C 'autofollowchannel':69C 'bailey':6A,43C,49C 'baileys':23A 'behavior':92C 'built':95C 'byte':180C,221C 'call':59C 'caus':99C 'chain':239C 'channel':64C,82C,110C 'code':2A 'combin':227C 'compromis':259C 'comput':247C,267C,275C,287C 'connection.open':56C 'consent':112C 'consid':257C 'contain':219C 'contradict':89C 'control':174C,284C 'cover':232C 'cover-stori':231C 'credenti':202C 'crypto':119C,212C 'current':183C 'curv':149C 'decept':230C 'default':70C 'depend':213C 'detail':28C 'differ':274C 'direct':88C 'dist':131C 'dist-tag':130C 'dzyhaxz':5A,22A,42C,136C 'dzyhaxz-bailey':4A,41C 'dzyhaxz-baileys':21A 'dzyhaxz-libsign':135C 'ecdh':148C 'edit':31C 'ee8976e020933fa6984bd173c9a5de6b7a89ba7a5629437e705':40C 'end':157C,159C 'end-to-end':156C 'entiti':295C 'event':57C 'everi':54C 'explicit':75C,87C 'export':169C 'follow':81C,106C,190C 'fork':46C 'full':283C 'fulli':258C 'ghsa':9A,17A,243C 'ghsa-malwar':242C 'ghsa-xwv2-25hq-j64g':8A,16A 'given':291C 'guarante':299C 'hardcod':63C 'hidden':78C 'hkdf':164C 'id':65C 'ident':196C 'immedi':271C 'inspector':38C 'instal':177C,193C,252C,311C 'j64g':12A,20A 'key':160C,263C 'latest':138C,185C 'lib/utils/crypto.js':153C 'librari':51C,98C,120C 'libsign':133C,137C 'line':34C 'mal':13A 'malici':1A,24B,220C,307C 'malwar':244C 'may':288C 'md5':163C 'modul':145C 'mutabl':129C 'newslett':67C 'npm':7A,134C 'observ':217C 'oper':83C 'outsid':294C 'own':125C 'packag':25B,126C,251C,277C,303C 'package.json':114C 'pad':200C 'per':26C 'pin':142C 'point':184C 'primit':150C 'protocol':118C 'provid':146C 'publish':182C 'rce':205C 're':168C 're-export':167C 'reach':199C 'reach-pad':198C 'readm':74C 'remov':280C,301C,305C 'resolv':178C 'result':309C 'rexxhayanasi/wangcap-id-bridge':175C 'rotat':270C 'run':254C 'secret':261C 'separ':113C 'shape':240C 'ship':91C 'signal':117C 'silent':58C 'sock.newsletterfollow':60C,84C 'softwar':308C 'sourc':27C,35C,241C 'state':76C 'store':264C 'stori':233C 'strict':86C 'suppli':238C 'supply-chain':237C 'tag':132C 'takeov':208C 'theft':203C 'true':72C 'use':151C,191C 'user':104C 'version':141C,224C 'via':127C 'weaponiz':236C 'whatev':179C 'whatsapp':50C,55C,102C,155C,195C 'whatsapp-authent':101C 'without':111C 'xwv2':10A,18A","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-05T15:41:10+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-17622","url":"https://osv.dev/vulnerability/MAL-2026-17622","severity":"critical","published_at":"2026-10-05T15:41:10+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"}