MAL-2026-18905
Malicious code in @trashcore/baileys (npm)
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | MAL-2026-18905 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
@trashcore/baileys is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. When the socket connects, code in lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) 120363420249672073@newsletter, 120363424020283759@newsletter (stored as base64 strings), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).
package.json declares the `libsignal` dependency as a bare git URL (`git+https://github.com/whiskeysockets/libsignal-node`) with no commit SHA, tag, or semver pin. On `npm install`, this dependency is resolved by cloning the default branch HEAD of that external GitHub repository and installing whatever code it currently contains, including any lifecycle scripts (`preinstall`/`install`/`postinstall`/`prepare`) present in the fetched tree. There is no integrity check, no version lock, and no cryptographic pinning — the executed code is determined by the state of a third-party repository at install time rather than by an immutable registry artifact. Whoever controls that external repository (or anyone who gains write access to its default branch) can introduce arbitrary code that will run on every machine that installs this package.
Any 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.
Versiones afectadas
4.0.04.0.14.0.24.0.54.0.64.0.74.0.84.0.94.1.04.1.14.1.24.1.34.1.44.1.54.1.64.1.74.1.84.1.94.2.04.2.14.2.24.2.34.2.44.2.74.2.64.2.5Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@trashcore/baileys |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/advisories/GHSA-646c-v3qw-f7f9https://www.npmjs.com/package/@trashcore/baileyshttps://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/https://www.npmjs.com/package/@trashcore/baileys/v/4.2.3Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
