cvelo
P2 · HighMalware

Malicious code in @zanxiky/baileys (npm)

  • GHSA-43rp-v8rh-9333

Description

Malicious package. `@zanxiky/baileys` is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). on connection it issues an authenticated `w:mex` newsletter FOLLOW mutation (query_id 7871414976211147) that silently subscribes every victim to attacker-controlled WhatsApp channels — hardcoded newsletter JIDs: 120363399602691477@newsletter, 120363421563597486@newsletter. Legitimate Baileys never hardcodes a channel JID or auto-follows on connect; all published versions are malicious. Detected by wormsign static analysis of the injected channel-subscription code. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/8da9022de2080e47a8ec0acdbccbadd2c0778d4e/osv/malicious/npm/@zanxiky/baileys/MAL-2026-19059.json))

Text from the GitHub Advisory record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • @zanxiky/baileysnpm

    Affected versionsFixed in
    all versionsnone stated

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.