MAL-2026-20804

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@dyyxyzz/baileys/MAL-2026-20804.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20804
Published
2026-11-06T00:00:00Z
Modified
2026-12-01T09:15:04Z
Summary
Malicious code in @dyyxyzz/baileys (npm)
Details

@dyyxyzz/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. Two forms, both in makeNewsletterSocket and run on every socket creation. (1) 1.0.6, 1.0.7, 1.0.8, 1.1.9 and 1.1.10 (lib/Socket/newsletter.js sha256 c04aa44aee3441eb6a1d35b8dbb6ebac128461b346274a76cb8546258d8653da): 5 seconds after creation it sends newsletterWMexQuery("120363384627502211@newsletter", QueryIds.FOLLOW); a second timer 80 seconds after creation fetches hxxps://github[.]com/DyyEuuee/Nani/blob/main/codes/bailwa.json and follows each entry (that URL serves an HTML page, so only the hard-coded channel is followed in practice). Errors are swallowed. (2) 1.1.11 replaces this with the loadBase loop: lib/Utils/messages-media.js exports loadBase, which makeNewsletterSocket (lib/Socket/newsletter.js) calls on every socket creation as loadBase(newsletterWMexQuery, QueryIds). 80 seconds later it fetches a channel list from a URL stored as base64 and, 5 seconds apart, calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each entry with the victim's authenticated session, swallowing errors. Nothing is logged and the README does not mention it. lib/Utils/messages-media.js sha256 1c38d186f020e01b3332b614be5ef3718b9c88789f2ada7bfe88ffa1a090e610; the URL decodes to hxxps://raw[.]githubusercontent[.]com/DyyEuuee/Nani/refs/heads/main/codes/bailwa.json (4 channel IDs on 2026-11-06). 1.0.3 and 1.0.4 are not listed: their lib/Socket/newsletter.js does not parse (the follow line ends in "QueryIds.>"), so the library cannot load. Same behaviour as the PhantomSub family (MAL-2026-17342). Amazon Inspector described the same loadBase loop in @rixxcodex/baileys (MAL-2026-16483).

Database specific
{
    "iocs":  {
        "domains":  [
            "github.com",
            "raw.githubusercontent.com"
        ],
        "files":  [
            {
                "digests":  {
                    "sha256":  "c04aa44aee3441eb6a1d35b8dbb6ebac128461b346274a76cb8546258d8653da"
                },
                "paths":  [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests":  {
                    "sha256":  "1c38d186f020e01b3332b614be5ef3718b9c88789f2ada7bfe88ffa1a090e610"
                },
                "paths":  [
                    "lib/Utils/messages-media.js"
                ]
            }
        ],
        "ips":  [],
        "urls":  [
            "https://github.com/DyyEuuee/Nani/blob/main/codes/bailwa.json",
            "https://raw.githubusercontent.com/DyyEuuee/Nani/refs/heads/main/codes/bailwa.json"
        ]
    }
}
References
Credits

Affected packages

npm / @dyyxyzz/baileys

Package

Name
@dyyxyzz/baileys
View open source insights on deps.dev
Purl
pkg:npm/%40dyyxyzz/baileys

Affected ranges

Affected versions

1.*
1.0.6
1.0.7
1.0.8
1.1.9
1.1.10
1.1.11

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/@dyyxyzz/baileys/MAL-2026-20804.json"