npm · Malicious package advisory
Malware@developmentyora/baileyss
GHSA-hr4v-9q47-37m3
Malicious code in @developmentyora/baileyss (npm)
Details
**Severity:** Critical **Affected versions:** `= 1.0.0` This package is a fork of the Baileys WhatsApp Web library (npm) and belongs to the "PhantomSub" family described by OX Security in September 2026: the publisher injected code that, without the installer asking, uses the installer's own authenticated WhatsApp session to subscribe that account to WhatsApp Channels (newsletters) the publisher chose, by sending the WhatsApp `w:mex` FOLLOW query (query_id 7871414976211147) for each target channel JID. `package/lib/Socket/newsletter.js` lines 62-103 (cited line 68: `QueryIds.FOLLOW`) run in the body of `makeNewsletterSocket`, so they fire whenever a socket is created: 90 seconds later, and then at 5-second intervals, the code sends FOLLOW queries for four channel JIDs, each stored as a base64 literal decoded with `Buffer.from(..., "base64")`: `120363427594836299@newsletter`, `120363425875407481@newsletter`, `120363407288464467@newsletter` and `120363426218991285@newsletter`. There is no opt-out and the behavior is not documented. Line numbers refer to version 1.0.0. Static review of the published tarball(s) found no code that sends WhatsApp credentials or session keys off-host, no install-time payload (the only install hook is Baileys' stock Node.js version check in `engine-requirements.js`), and no persistence; the payload runs when an application creates a WhatsApp socket with the library. The harm is the covert use of the victim's account to inflate the publisher's channel subscribers. SHA-256 of the published npm tarball(s): 1.0.0: `dcd91e2ea65ee271b729b118e7778cce1e028d90527c3b330aa04c59456dcba6`. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/d69382a194448ad0562ad4d9e4380c1c6a673841/osv/malicious/npm/@developmentyora/baileyss/MAL-2026-17439.json)) **References:** - https://github.com/ossf/malicious-packages/blob/d69382a194448ad0562ad4d9e4380c1c6a673841/osv/malicious/npm/@developmentyora/baileyss/MAL-2026-17439.json - https://www.npmjs.com/package/@developmentyora/baileyss - https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels - https://github.com/advisories/GHSA-hr4v-9q47-37m3
Compromised versions (1)
- = 1.0.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.