MAL-2026-20813

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

@yaszz/bail 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. 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. In 1.0.0 (lib/Utils/messages-media.js sha256 9f9ac07af807b27673470af9f124782bfaa2df802905aa3ce9eb91d680217571) the URL decodes to hxxps://raw[.]githubusercontent[.]com/Yaszz-17/Newsletter/main/id.json (fetched with a cache-busting ?t= parameter; 1 channel ID on 2026-11-06). 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":  [
            "raw.githubusercontent.com"
        ],
        "files":  [
            {
                "digests":  {
                    "sha256":  "9f9ac07af807b27673470af9f124782bfaa2df802905aa3ce9eb91d680217571"
                },
                "paths":  [
                    "lib/Utils/messages-media.js"
                ]
            }
        ],
        "ips":  [],
        "urls":  [
            "https://raw.githubusercontent.com/Yaszz-17/Newsletter/main/id.json"
        ]
    }
}
References
Credits

Affected packages

npm / @yaszz/bail

Package

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

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/@yaszz/bail/MAL-2026-20813.json"