{"id":"GHSA-qh6w-wgpq-j344","kind":"package","aliases":["GHSA-qh6w-wgpq-j344","MAL-2026-17846"],"related":[],"title":"Malicious code in @yudzxml/baileys (npm)","description":"---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (629ff06ada2390b75e4ba41304b30289746455bba454c455d04d7743f6998974)\nThis package is a fork of the Baileys WhatsApp Web library. a static rule matched on keyword co-occurrence in lib/Utils/messages-media.js: `require('child_process')`, `require('os')`, `require('http')`/`require('https')`, and `POST`/`GET`/`fetch(` calls, with the only cited literal URL being `https://mmg.whatsapp.net` (WhatsApp's own media server, which is the expected destination for a Baileys media utility). The evidence quotes do not name any non-first-party attacker endpoint, do not show environment-variable scraping, and do not show reads of installer-secret paths (`~/.ssh`, `~/.aws`, `~/.npmrc`, browser stores). The primitive co-occurrence in messages-media.js is the shape you would expect from a legitimate WhatsApp media upload/download implementation (child_process for ffmpeg/thumbnail generation, http/https/fetch for WhatsApp media endpoints, os for tmpdir). Because this is a fork of a widely used upstream library, and forks are a common vehicle for covert modifications (e.g., undocumented actions using the caller's WhatsApp session), a reviewer should diff this fork against upstream Baileys to confirm messages-media.js only talks to `mmg.whatsapp.net`/WhatsApp infrastructure, and that no other file in the package performs credential harvest, undocumented auto-follow/subscribe, or exfiltration using the caller's session. Without corroborating evidence of installer harm, keyword co-occurrence alone is not sufficient to publish a block.\n\n## Source: ghsa-malware (96357918fec8e046fe049ec94c614ab988e412532ace70beeb64d737533c3a30)\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":"@yudzxml/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-12T16:31:25+00:00","first_seen_at":"2026-10-29T14:54:44+00:00","triaged_at":"2026-10-29T14:55:09+00:00","updated_at":"2026-10-29T14:55:09+00:00","category":"package","confidence":null,"triage":null,"analyst_status":null,"analyst_note":null,"search":"'-17846':13A '-2026':12A '/.aws':126C '/.npmrc':127C '/.ssh':125C '/subscribe':225C '/whatsapp':208C '629ff06ada2390b75e4ba41304b30289746455bba454c455d04d7743f6998974':35C '96357918fec8e046fe049ec94c614ab988e412532ace70beeb64d737533c3a30':255C 'action':185C 'alon':243C 'amazon':33C 'amazon-inspector':32C 'attack':106C 'auto':223C 'auto-follow':222C 'bailey':43C,92C,200C 'block':250C 'browser':128C 'call':71C 'caller':188C,230C 'child':59C,150C 'cite':75C 'co':54C,133C,241C 'co-occurr':53C,132C,240C 'code':2A 'common':178C 'compromis':269C 'comput':257C,277C,285C,297C 'confirm':202C 'consid':267C 'control':294C 'corrobor':234C 'covert':181C 'credenti':219C 'destin':89C 'detail':24C 'diff':195C 'differ':284C 'e.g':183C 'edit':27C 'endpoint':107C,159C 'entiti':305C 'environ':112C 'environment-vari':111C 'evid':96C,235C 'exfiltr':227C 'expect':88C,142C 'fetch':70C 'ffmpeg/thumbnail':153C 'file':214C 'first':104C 'follow':224C 'fork':40C,167C,175C,197C 'full':293C 'fulli':268C 'generat':154C 'get':69C 'ghsa':7A,15A,253C 'ghsa-malwar':252C 'ghsa-qh6w-wgpq-j344':6A,14A 'given':301C 'guarante':309C 'harm':238C 'harvest':220C 'http':64C 'http/https/fetch':155C 'https':66C 'immedi':281C 'implement':149C 'infrastructur':209C 'inspector':34C 'instal':122C,237C,262C,321C 'installer-secret':121C 'j344':10A,18A 'key':273C 'keyword':52C,239C 'legitim':145C 'lib/utils/messages-media.js':57C 'librari':46C,173C 'line':30C 'liter':76C 'mal':11A 'malici':1A,20B,317C 'malwar':254C 'match':50C 'may':298C 'media':83C,93C,147C,158C 'messages-media.js':136C,203C 'mmg.whatsapp.net':79C,207C 'modif':182C 'name':100C 'non':103C 'non-first-parti':102C 'npm':5A 'occurr':55C,134C,242C 'os':62C,160C 'outsid':304C 'packag':21B,37C,217C,261C,287C,313C 'parti':105C 'path':124C 'per':22C 'perform':218C 'post':68C 'primit':131C 'process':60C,151C 'publish':248C 'qh6w':8A,16A 'quot':97C 'read':119C 'remov':290C,311C,315C 'requir':58C,61C,63C,65C 'result':319C 'review':193C 'rotat':280C 'rule':49C 'run':264C 'scrape':114C 'secret':123C,271C 'server':84C 'session':191C,232C 'shape':139C 'show':110C,118C 'softwar':318C 'sourc':23C,31C,251C 'static':48C 'store':129C,274C 'suffici':246C 'talk':205C 'tmpdir':162C 'undocu':184C,221C 'upload/download':148C 'upstream':172C,199C 'url':77C 'use':171C,186C,228C 'util':94C 'variabl':113C 'vehicl':179C 'web':45C 'wgpq':9A,17A 'whatsapp':44C,80C,146C,157C,190C 'wide':170C 'without':233C 'would':141C 'yudzxml/baileys':4A,19A","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-12T16:31:25+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-17846","url":"https://osv.dev/vulnerability/MAL-2026-17846","severity":"critical","published_at":"2026-10-12T16:31:25+00:00","modified_at":"2026-10-29T14:30:32+00:00","first_seen_at":"2026-10-29T14:54:44+00:00","fetched_at":"2026-10-29T14:54:44+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"}