{"id":"GHSA-cgq9-cff6-pf33","kind":"package","aliases":["GHSA-cgq9-cff6-pf33","MAL-2026-17901"],"related":[],"title":"Malicious code in @xatancchii/natabaileys (npm)","description":"---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (262bd24b77d6bc63e4f9b139d3688b3956f85cd25b9b23613abc807841944578)\nThe package is a fork of Baileys published under `@xatancchii` that remaps the `libsignal` import to a third-party scoped package via `\"libsignal\": \"npm:@bellaxchuu/libsignal-node@latest\"` in `package.json`. The scope `@bellaxchuu` matches neither the publisher of this package (`@xatancchii`) nor the upstream project (`WhiskeySockets/libsignal-node`), and the version is pinned to the mutable `@latest` dist-tag with no integrity check. The aliased dependency supplies the Signal protocol crypto primitives and is loaded on every `require` of the package through `lib/Signal/libsignal.js` and `lib/Utils/crypto.js` (SessionCipher / SessionBuilder / SessionRecord paths). Each `npm install` fetches whatever `@bellaxchuu/libsignal-node` currently publishes under `@latest`, and that code is executed in-process whenever the Baileys fork is imported, including from inside session handling for WhatsApp Web connections where decrypted message plaintext and long-lived session keys are available.\n\n## Source: ghsa-malware (f5ae1bb8eedff775ab95af3b382114e74ca3097cf294a34db67087e99cabd900)\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":"@xatancchii/natabaileys","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-16T13:02:31+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":"'-17901':13A '-2026':12A '262bd24b77d6bc63e4f9b139d3688b3956f85cd25b9b23613abc807841944578':35C 'alias':98C 'amazon':33C 'amazon-inspector':32C 'avail':167C 'bailey':42C,143C 'bellaxchuu':67C 'bellaxchuu/libsignal-node':61C,128C 'cff6':9A,17A 'cgq9':8A,16A 'check':96C 'code':2A,135C 'compromis':186C 'comput':174C,194C,202C,214C 'connect':155C 'consid':184C 'control':211C 'crypto':104C 'current':129C 'decrypt':157C 'depend':99C 'detail':24C 'differ':201C 'dist':91C 'dist-tag':90C 'edit':27C 'entiti':222C 'everi':110C 'execut':137C 'f5ae1bb8eedff775ab95af3b382114e74ca3097cf294a34db67087e99cabd900':172C 'fetch':126C 'fork':40C,144C 'full':210C 'fulli':185C 'ghsa':7A,15A,170C 'ghsa-cgq9-cff6-pf33':6A,14A 'ghsa-malwar':169C 'given':218C 'guarante':226C 'handl':151C 'immedi':198C 'import':50C,146C 'in-process':138C 'includ':147C 'insid':149C 'inspector':34C 'instal':125C,179C,238C 'integr':95C 'key':165C,190C 'latest':62C,89C,132C 'lib/signal/libsignal.js':116C 'lib/utils/crypto.js':118C 'libsign':49C,59C 'line':30C 'live':163C 'load':108C 'long':162C 'long-liv':161C 'mal':11A 'malici':1A,20B,234C 'malwar':171C 'match':68C 'may':215C 'messag':158C 'mutabl':88C 'neither':69C 'npm':5A,60C,124C 'outsid':221C 'packag':21B,37C,57C,74C,114C,178C,204C,230C 'package.json':64C 'parti':55C 'path':122C 'per':22C 'pf33':10A,18A 'pin':85C 'plaintext':159C 'primit':105C 'process':140C 'project':79C 'protocol':103C 'publish':43C,71C,130C 'remap':47C 'remov':207C,228C,232C 'requir':111C 'result':236C 'rotat':197C 'run':181C 'scope':56C,66C 'secret':188C 'session':150C,164C 'sessionbuild':120C 'sessionciph':119C 'sessionrecord':121C 'signal':102C 'softwar':235C 'sourc':23C,31C,168C 'store':191C 'suppli':100C 'tag':92C 'third':54C 'third-parti':53C 'upstream':78C 'version':83C 'via':58C 'web':154C 'whatev':127C 'whatsapp':153C 'whenev':141C 'whiskeysockets/libsignal-node':80C 'xatancchii':45C,75C 'xatancchii/natabaileys':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-16T13:02:31+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"osv-malicious","external_id":"MAL-2026-17901","url":"https://osv.dev/vulnerability/MAL-2026-17901","severity":"critical","published_at":"2026-10-16T13:02:31+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"}