Advisory

MAL-2026-18968

Also known as: GHSA-9p24-c8h2-5pqp

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in diezyxalya-baileys (npm)

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-10-27 00:00 UTC
Modified
2026-11-13 03:45 UTC

Affected packages and fixes

diezyxalya-baileys

npm · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences