{"id":"MAL-2026-18120","revision":"d3578e47bae948d0979e94b3776b6c35","records":[{"revision":"d3578e47bae948d0979e94b3776b6c35","observedAt":"2026-10-29T14:12:32.841+00:00","statement":{"source":"osv","id":"MAL-2026-18120","aliases":["GHSA-7345-fjw8-x55w"],"title":"Malicious code in @alannxd/baileys (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d4fb2a79f40e981f5c9f9d74c13e260bedf63dec8aca64dfdd2238c8450ec383)\n@alannxd/baileys is a third-party fork of the @whiskeysockets/baileys WhatsApp library. When the package is imported, lib/index.js unconditionally performs an HTTPS GET to https://raw.githubusercontent.com/alannzxd/xclient/refs/heads/main/information.json and prints the first element of the response to the console. The fetched content is treated as a string for display only — it is not passed to eval/Function/exec, and no installer data is sent in the request body. However, every consumer's IP address is revealed to the author on each import, and the URL points to a mutable branch on a personal GitHub repository, so the content can be changed by the author at any time without a new package release. Additionally, the package name closely mirrors the well-known @whiskeysockets/baileys library and may be installed by mistake by users expecting the upstream. The lib/Utils/generics.js reference to 'ping' is a benign network-reachability helper, not exfiltration. As written, the package does not exfiltrate credentials, execute remote code, or destroy installer-side resources, so it falls below the block threshold; however, the import-time beacon to a mutable author-controlled source and the namespace-confusion risk warrant human review.\n\n## Source: ghsa-malware (840c3322267f13ca6fa905016fabb93a923c1a490fa0584d9e173f0f0a8f71d0)\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-10-21T03:24:45+00:00","modifiedAt":"2026-10-29T13:48:06.7280684+00:00","affected":[{"ecosystem":"npm","name":"@alannxd/baileys","ranges":[],"versions":["6.2.8","6.2.7","6.1.7","6.1.6","6.1.4","6.1.3","6.1.2","6.1.1","6.1.0","6.0.9","6.0.6","6.0.5","6.0.4","6.0.3","6.0.2","6.0.1","6.0.0","5.0.6","5.0.5","4.0.4","4.0.5","4.0.3","3.0.3","3.0.0","2.1.4","2.1.3","2.1.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/advisories/GHSA-7345-fjw8-x55w","https://www.npmjs.com/package/@alannxd/baileys/v/6.0.0","https://www.npmjs.com/package/@alannxd/baileys/v/6.0.1","https://www.npmjs.com/package/@alannxd/baileys/v/6.0.3","https://www.npmjs.com/package/@alannxd/baileys/v/6.0.6","https://www.npmjs.com/package/@alannxd/baileys/v/6.0.9"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-18120","license":"OSV · upstream source license applies","key":"osv:MAL-2026-18120","identifiers":["MAL-2026-18120","GHSA-7345-fjw8-x55w"]},"retained":false,"historicalAffected":[]}],"coverage":[]}