MAL-2026-18885

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

@riyanofficial/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. When the socket connects, code in lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query for a list downloaded at runtime from https://raw.githubusercontent.com/riyanoffc/ChannelID/refs/heads/main/newsletter.json, using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).

Database specific
{
    "iocs": {
        "domains": [
            "raw.githubusercontent.com"
        ],
        "files": [
            {
                "digests": {
                    "sha256": "31f8914419f161c0d115e893dd2caae7492e4a5e0434c27c8569d66e84dbb43c"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "435a5ce4bbc083eea9f7862de9c8aa56bda7997f5d41421db1e3921027f0cde5"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "e9719c01481294b2affa19c9fcac817c5c6c5f36ef985456251a9edde17e2942"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            }
        ],
        "ips": [],
        "urls": [
            "https://raw.githubusercontent.com/riyanoffc/ChannelID/refs/heads/main/newsletter.json"
        ]
    }
}
References
Credits

Affected packages

npm / @riyanofficial/baileys

Package

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

Affected ranges

Affected versions

3.*
3.0.0
3.0.1
3.0.2
4.*
4.0.0
8.*
8.0.0
8.4.12
10.*
10.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/@riyanofficial/baileys/MAL-2026-18885.json"