MAL-2026-21128

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/haydraxbaileys/MAL-2026-21128.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-21128
Published
2026-12-03T06:02:50Z
Modified
2026-12-04T04:45:04Z
Summary
Malicious code in haydraxbaileys (npm)
Details

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.

Database specific
{
    "iocs":  {
        "files":  [
            {
                "digests":  {
                    "sha256":  "f2f7d029c84e52989bca79d4edc404a5d52ebc9899ec752c78ac985431090e96"
                },
                "note":  "1.0.0: follows 3 hardcoded newsletter IDs on every connection open and auto-reacts to their posts.",
                "paths":  [
                    "lib/Socket/newsletter.js"
                ],
                "source":  "PACKAGE_ARCHIVE"
            }
        ]
    }
}
Credits

Affected packages

npm / haydraxbaileys

Package

Name
haydraxbaileys
View open source insights on deps.dev
Purl
pkg:npm/haydraxbaileys

Affected ranges

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/haydraxbaileys/MAL-2026-21128.json"