# MAL-2026-18968: Malicious code in diezyxalya-baileys (npm)

- Database: OpenSSF
- Malicious package: yes
- Published: 2026-10-27
- Modified: 2026-11-13

## Also published as

- [GHSA-9P24-C8H2-5PQP](https://cve.now/GHSA-9P24-C8H2-5PQP.md) (GitHub)

## Affected versions

- diezyxalya-baileys (npm): all versions

## Description

diezyxalya-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/messages-recv.js sends the WhatsApp w:mex FOLLOW query and then MUTE, so the channel goes unnoticed, for the channel ID(s) 120363411200403731@newsletter, 120363418090359162@newsletter (stored as character-code arrays), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).

---
_-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (0ec5e2598a5e047bafd1721a3400da3bdac022224007ea93c22002d16dd20291)
package.json declares a runtime dependency `libsignal` whose source is `github:dzytzy/alya-baileys#latest` — a mutable branch rather than a pinned version or commit SHA. On `npm install`, npm clones whatever currently lives on that branch and installs it as `libsignal`, running any lifecycle scripts the fetched tree declares. The branch owner can swap the installed code at any time without republishing this package to npm, so install-time code execution on the installer's machine is controlled entirely by whoever controls that branch. Separately, `makeNewsletterSocket` wires a hardcoded `ChannelManager` that, on connection open, silently auto-subscribes the installer's authenticated WhatsApp account to the author-owned newsletter JID `120363411407993897@newsletter` (default-on unless `autoFollowChannels: false` is set), and `fetchLatestBaileysVersion` reads version metadata from `raw.githubusercontent.com/ramadanny/vialeys/refs/heads/master/...` — a mutable branch under a GitHub user unrelated to the declared publisher `dzytzy`.

## Source: ghsa-malware (24959b15742a1c60f9f764f7d80a26e7e6eb71757febaf01d42676f3a32cae6a)
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.

## References

- https://www.npmjs.com/package/diezyxalya-baileys
- https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/
- https://github.com/advisories/GHSA-9p24-c8h2-5pqp
- https://www.npmjs.com/package/diezyxalya-baileys/v/1.0.0
- https://www.npmjs.com/package/diezyxalya-baileys/v/1.0.1

Page: https://cve.now/MAL-2026-18968

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
