{"id":"GHSA-c2gc-jwcq-w8r3","kind":"package","aliases":["GHSA-c2gc-jwcq-w8r3","MAL-2026-17850"],"related":[],"title":"Malicious code in @chatest/baileys (npm)","description":"---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f9c6f7960bb0d0edc97cac2310f15f01156a4dbc0b19e8ba8e4a42075882dc01)\nThe package.json of @chatest/baileys@4.4.0 declares the `libsignal` dependency as `github:chatunitycenter/libsignal-node` with no commit SHA, tag, or semver pin. On `npm install`, this resolves to whatever bytes are at the default branch HEAD of that external GitHub repository at the moment of installation, including any lifecycle scripts contained in them. The dependency is actively consumed via `require(\"libsignal\")` in `lib/Signal/libsignal.js`, so it is part of the runtime tree and loaded on module import as well. Whoever controls the referenced GitHub repository controls code that runs on every installer's machine, unpinned and integrity-unchecked. The package also exhibits a scope/branding mismatch: it is published as `@chatest/baileys` but its `homepage` and `repository.url` both point at `@chatunity/baileys`, and the README banner brands the module as `ChatUnity Baileys`.\n\n## Source: ghsa-malware (fe80b7b76923a24948c1d095c3dc2474c0aac3574a3cf2046bf152c7dcde0aac)\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":"@chatest/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-13T12:15:46+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":"'-17850':13A '-2026':12A '4.4.0':40C 'activ':90C 'also':134C 'amazon':33C 'amazon-inspector':32C 'bailey':162C 'banner':156C 'branch':68C 'brand':157C 'byte':63C 'c2gc':8A,16A 'chatest/baileys':4A,19A,39C,143C 'chatun':161C 'chatunity/baileys':152C 'chatunitycenter/libsignal-node':47C 'code':2A,119C 'commit':50C 'compromis':181C 'comput':169C,189C,197C,209C 'consid':179C 'consum':91C 'contain':84C 'control':113C,118C,206C 'declar':41C 'default':67C 'depend':44C,88C 'detail':24C 'differ':196C 'edit':27C 'entiti':217C 'everi':123C 'exhibit':135C 'extern':72C 'f9c6f7960bb0d0edc97cac2310f15f01156a4dbc0b19e8ba8e4a42075882dc01':35C 'fe80b7b76923a24948c1d095c3dc2474c0aac3574a3cf2046bf152c7dcde0aac':167C 'full':205C 'fulli':180C 'ghsa':7A,15A,165C 'ghsa-c2gc-jwcq-w8r3':6A,14A 'ghsa-malwar':164C 'github':46C,73C,116C 'given':213C 'guarante':221C 'head':69C 'homepag':146C 'immedi':193C 'import':109C 'includ':80C 'inspector':34C 'instal':58C,79C,124C,174C,233C 'integr':130C 'integrity-uncheck':129C 'jwcq':9A,17A 'key':185C 'lib/signal/libsignal.js':96C 'libsign':43C,94C 'lifecycl':82C 'line':30C 'load':106C 'machin':126C 'mal':11A 'malici':1A,20B,229C 'malwar':166C 'may':210C 'mismatch':138C 'modul':108C,159C 'moment':77C 'npm':5A,57C 'outsid':216C 'packag':21B,133C,173C,199C,225C 'package.json':37C 'part':100C 'per':22C 'pin':55C 'point':150C 'publish':141C 'readm':155C 'referenc':115C 'remov':202C,223C,227C 'repositori':74C,117C 'repository.url':148C 'requir':93C 'resolv':60C 'result':231C 'rotat':192C 'run':121C,176C 'runtim':103C 'scope/branding':137C 'script':83C 'secret':183C 'semver':54C 'sha':51C 'softwar':230C 'sourc':23C,31C,163C 'store':186C 'tag':52C 'tree':104C 'uncheck':131C 'unpin':127C 'via':92C 'w8r3':10A,18A 'well':111C 'whatev':62C 'whoever':112C","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-13T12:15:46+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-17850","url":"https://osv.dev/vulnerability/MAL-2026-17850","severity":"critical","published_at":"2026-10-13T12:15:46+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"}