MAL-2026-18880

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

@ranstech/bails 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/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) 120363349140729983@newsletter, 120363371199176376@newsletter, 120363404953742204@newsletter, 120363408883778327@newsletter, 120363409519566274@newsletter, 120363410018949906@newsletter and 5 more (stored as base64 strings), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).

Database specific
{
    "iocs": {
        "domains": [],
        "files": [
            {
                "digests": {
                    "sha256": "39c3afee668e58e4bc754fa571f4973233e1e97a389889c47f522be90ad33752"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "7088889e739a2c4ec118e8c9697c7fe91e3e7f231c1ecc0c496e46b78d2bd451"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "da42bb01dc5e26fb0254ac4ff5b155742299b453e2249075556b102b335b8e22"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "f4a1060a681c3f55749b4c7c440d32e19e16875412920178794116cd4e808770"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            }
        ],
        "ips": [],
        "urls": []
    }
}
References
Credits

Affected packages

npm / @ranstech/bails

Package

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

Affected ranges

Affected versions

1.*
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
2.*
2.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/@ranstech/bails/MAL-2026-18880.json"