cvelo
P2 · HighMalware

Malicious code in haydraxbaileys (npm)

  • GHSA-mj7x-v244-wq6j

Summary

The npm package haydraxbaileys is a modified copy of the Baileys WhatsApp Web library that uses the account of any application importing it to follow three hardcoded WhatsApp channels and to send random emoji reactions to every new post in them. This happens automatically each time the socket connects, and errors are ignored. The README claims only one channel is followed and that users can opt out by editing source files, but the published package contains no source directory and no configuration option to disable the behavior. The record lists no CVSS score and no CISA known-exploited status.

AI summary · verify against the vendor advisory

Description

haydraxbaileys is a modified copy of the Baileys WhatsApp Web library (@whiskeysockets/baileys) that uses the user's WhatsApp account to follow and boost channels chosen by its author. When an application that imports it creates a socket, `lib/Socket/newsletter.js` registers handlers that, every time the connection opens, call `newsletterFollow` for each ID in a hardcoded `HAYDRA_CHANNELS` list (120363431621628285@newsletter, 120363432885159395@newsletter and 120363413103088558@newsletter), and, for every new post in those channels, send a reaction with a random emoji, ignoring errors. The README says the library follows one channel and that users can opt out by editing `src/Socket/newsletter.ts`, but the code follows three and the npm package ships no `src/` directory or config option to disable it. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/371916368c5e8794f2faae6a0702386ab9552ef3/osv/malicious/npm/haydraxbaileys/MAL-2026-21128.json))

Text from the GitHub Advisory record.

Affected

  • haydraxbaileysnpm

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.