{"id":"GHSA-mxxc-f6p6-98j7","revision":null,"records":[{"revision":"88d58eaf2ac2454da5470d9a7fe62629","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10665","aliases":["GHSA-mxxc-f6p6-98j7"],"title":"Malicious code in @fhkry/x-baileys (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (db9f6c3e5c391d9d3ffeb7f6c1b4154b0266efeb73bdf5543ad81f50236bdabc)\nThis package presents itself as a fork of @whiskeysockets/baileys (impersonating the original author 'Adhiraj Singh' in package.json and exposing the same makeWASocket API surface) but adds undocumented covert behavior in lib/Socket/newsletter.js. Two side effects fire on any consumer that creates a WhatsApp socket with this library:\n\n1. A setTimeout 120 seconds after socket creation base64-decodes a hardcoded URL (https://raw.githubusercontent.com/Fhkryy/Fhkry/refs/heads/main/peler.json) — the URL is stored as the base64 literal `aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0Zoa3J5eS9GaGtyeS9yZWZzL2hlYWRzL21haW4vcGVsZXIuanNvbg==` to hide it from casual inspection. The fetched JSON contains base64-encoded WhatsApp newsletter IDs, and the code silently calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each one using the installer's authenticated WhatsApp account.\n\n2. A `connection.update` handler invokes autoJoinWhatsAppGroups when the connection opens, iterating a hardcoded list (currently `https://chat.whatsapp.com/C8n8s4Yj1G42wdkAwDP7rP`) and calling sock.groupAcceptInvite / groupAcceptInviteV4 to silently join attacker-chosen WhatsApp groups under the installer's identity.\n\nBoth lists are mutable (raw.githubusercontent.com main branch + package updates), so the attacker can rotate destinations at will. Every developer using this library to run a WhatsApp bot has their account hijacked into following newsletters and joining groups of the attacker's choosing — a silent-relay of the consumer's WhatsApp identity to attacker-curated spaces. The package's homepage field points to a different scope (`@fhkryy/x-baileys`) than the package name (`@fhkry/x-baileys`), and the author field falsely names the original Baileys maintainer, confirming impersonation intent.\n\n## Source: ghsa-malware (41cbffddc905c0088db2c4c3278d560592d468e9c6e762a626e2755c51d4ae85)\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.\n","state":0,"publishedAt":"2026-07-15T06:35:37+00:00","modifiedAt":"2026-07-15T10:49:21.4425296+00:00","affected":[{"ecosystem":"npm","name":"@fhkry/x-baileys","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["1.3.0","1.4.0","1.0.0","1.7.0","1.1.0","1.6.0","1.2.0","1.5.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/advisories/GHSA-mxxc-f6p6-98j7","https://www.npmjs.com/package/@fhkry/x-baileys/v/1.3.0","https://www.npmjs.com/package/@fhkry/x-baileys/v/1.4.0","https://www.npmjs.com/package/@fhkry/x-baileys/v/1.0.0","https://www.npmjs.com/package/@fhkry/x-baileys/v/1.7.0","https://www.npmjs.com/package/@fhkry/x-baileys/v/1.1.0","https://www.npmjs.com/package/@fhkry/x-baileys/v/1.6.0","https://www.npmjs.com/package/@fhkry/x-baileys/v/1.2.0","https://www.npmjs.com/package/@fhkry/x-baileys/v/1.5.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10665","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10665","identifiers":["MAL-2026-10665","GHSA-mxxc-f6p6-98j7"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T19:04:00.0638408+00:00","complete":true,"records":1795,"lastAttemptAt":"2026-11-24T19:04:00.0638408+00:00","lastSuccessAt":"2026-11-24T19:04:00.2567929+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:04:00.2567941+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-1daa7f1b67108fe35131620b8b0a5746e6fe20269a757846341bc45ffc7235c2","complete":true,"records":431554,"lastAttemptAt":"2026-11-24T19:02:03.7322381+00:00","lastSuccessAt":"2026-11-24T19:02:03.5417608+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:02:03.7322381+00:00","snapshotPublishedAt":"2026-11-24T18:24:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-688c786e0e154f0aa5ebda26bfba5e3a","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T19:05:48.271103+00:00","lastSuccessAt":"2026-11-24T19:05:48.266+00:00","error":"94 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T19:05:48.266+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13877,"expectedIdentifiers":13982,"failedIdentifiers":94},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T19:04:00.0638408+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T19:04:00.0638408+00:00","lastSuccessAt":"2026-11-24T19:04:00.2576656+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:04:00.2576659+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a4d3d64b93df4d1da3938d27196fcba8","complete":true,"records":13947,"lastAttemptAt":"2026-11-24T19:04:25.9392073+00:00","lastSuccessAt":"2026-11-24T19:04:25.935+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:04:25.935+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13982,"expectedIdentifiers":13982,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-4929b8b852ac0d08034af08eb3f8801ac97c81d230bedb3a3a0710d6b4e692b2","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T19:03:59.9069049+00:00","lastSuccessAt":"2026-11-24T18:03:57.9682362+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:03:59.9069049+00:00","snapshotPublishedAt":"2026-11-24T17:33:45+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T19:02:03.8828812+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:02:03.8828812+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3afd4dd07a6bf352a6a53c4438150c464a2527017b95ca94804134ea15f1eba9","complete":true,"records":3220,"lastAttemptAt":"2026-11-24T19:04:00.0151969+00:00","lastSuccessAt":"2026-11-24T10:25:37.8779609+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:04:00.0151969+00:00","snapshotPublishedAt":"2026-11-24T09:33:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-44152768b3aabd79974e12387f59fcbffd2373284eb946ae9e13df00d985abde","complete":true,"records":233039,"lastAttemptAt":"2026-11-24T19:03:59.7804047+00:00","lastSuccessAt":"2026-11-24T19:03:58.5695229+00:00","error":null,"lastVerifiedAt":"2026-11-24T19:03:59.7804047+00:00","snapshotPublishedAt":"2026-11-24T18:33:49+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}