MAL-2026-18816

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@danzxcode/danzx-bail/MAL-2026-18816.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18816
Published
2026-10-27T00:00:00Z
Modified
2026-11-09T23:15:17Z
Summary
Malicious code in @danzxcode/danzx-bail (npm)
Details

@danzxcode/danzx-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. When the socket connects, code in lib/Socket/socket.js sends the WhatsApp w:mex FOLLOW query for a list downloaded at runtime from https://raw.github.com/skyzopedia/NewsletterID/refs/heads/main/VIP_Push.json (the URL itself stored as character-code arrays), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).

Update 2026-11-06: a second covert path, in 9.0.5, 9.0.6 and 9.0.7. 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, swallowing errors and logging nothing. 9.0.5 and 9.0.6: lib/Utils/messages-media.js sha256 b41905238c3feaad4f8eae25b8cd7acea4ae94ec0916e404d9baadc2a49575fd, URL https://ch-danzx.vercel.app/lyyn. 9.0.7: sha256 cc4da072e185d0312ea0fb7ea0d08edbde8645b6a0218759dca8ab011a85ad59, URL https://danzx-bail.vercel.app/lyyn. 9.0.5 has only this path, so it is added to the affected versions. CyberXYZ read every published version statically from the npm registry tarballs on 2026-11-06 (integrity verified); nothing was executed. Amazon Inspector described the same loadBase loop in @rixxcodex/baileys (MAL-2026-16483).

Database specific
{
    "iocs": {
        "domains": [
            "raw.github.com",
            "ch-danzx.vercel.app",
            "danzx-bail.vercel.app"
        ],
        "files": [
            {
                "digests": {
                    "sha256": "ea57a6770cf2c246e27a5ffe85ffeb496624f9b1582868d5dff184fd6369a394"
                },
                "paths": [
                    "lib/Socket/socket.js"
                ]
            },
            {
                "digests": {
                    "sha256": "b41905238c3feaad4f8eae25b8cd7acea4ae94ec0916e404d9baadc2a49575fd"
                },
                "paths": [
                    "lib/Utils/messages-media.js"
                ]
            },
            {
                "digests": {
                    "sha256": "cc4da072e185d0312ea0fb7ea0d08edbde8645b6a0218759dca8ab011a85ad59"
                },
                "paths": [
                    "lib/Utils/messages-media.js"
                ]
            }
        ],
        "ips": [],
        "urls": [
            "https://raw.github.com/skyzopedia/NewsletterID/refs/heads/main/VIP_Push.json",
            "https://ch-danzx.vercel.app/lyyn",
            "https://danzx-bail.vercel.app/lyyn"
        ]
    }
}
References
Credits

Affected packages

npm / @danzxcode/danzx-bail

Package

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

Affected ranges

Affected versions

9.*
9.0.5
9.0.6
9.0.7

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/@danzxcode/danzx-bail/MAL-2026-18816.json"