MAL-2026-18669

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@alannxds/baileys/MAL-2026-18669.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18669
Published
2026-10-26T00:00:00Z
Modified
2026-11-19T22:45:06Z
Summary
Malicious code in @alannxds/baileys (npm)
Details

@alannxds/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 the channel ID(s) 120363371199176376@newsletter, 120363387182851100@newsletter, 120363421367985094@newsletter (stored base64-encoded), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (1319252f8955af993b9abf274a6389b647045a5ce66a595f269a5a037304991a)

This package is a fork of the Baileys WhatsApp library published under the @alannxds scope. Its package.json declares its core cryptographic dependency libsignal as github:alannzxd/libsignal-node, an unpinned git reference pointing at a personal GitHub account's default branch with no commit SHA and no integrity check. On npm install, npm resolves whatever bytes that repository's HEAD currently returns and executes any lifecycle scripts inside it; whoever controls that repository can change the installed code at any time. The fork is hosted under a personal account divergent from the upstream WhiskeySockets/libsignal-node project. Additionally, lib/index.js performs a top-level fetch to https://raw.githubusercontent.com/alannzxd/xclient/refs/heads/main/information.json on every import, a mutable author-controlled URL; the current response is only logged, but the same channel can serve arbitrary future content.

Database specific
{
    "iocs":  {
        "domains":  [],
        "files":  [
            {
                "digests":  {
                    "sha256":  "69dad774243cdee39461c0ea4943cd7556ae811feca0234046511c4571e74881"
                },
                "paths":  [
                    "lib/Socket/newsletter.js"
                ]
            }
        ],
        "ips":  [],
        "urls":  []
    },
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-022894",
            "import_time":  "2026-11-19T22:36:18.679549552Z",
            "modified_time":  "2026-11-19T22:21:39Z",
            "sha256":  "1319252f8955af993b9abf274a6389b647045a5ce66a595f269a5a037304991a",
            "source":  "amazon-inspector",
            "versions":  [
                "6.2.12"
            ]
        },
        {
            "id":  "IN-MAL-2026-022893",
            "import_time":  "2026-11-19T22:36:18.581981806Z",
            "modified_time":  "2026-11-19T22:21:31Z",
            "sha256":  "293d001ed67f7c8521d506caa539aef51b13b4001300b1be9396ce8e11b35131",
            "source":  "amazon-inspector",
            "versions":  [
                "6.2.13"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @alannxds/baileys

Package

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

Affected ranges

Affected versions

6.*
6.2.10
6.2.12
6.2.13

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "package.json",
            "sha256":  "3653c39e4523e5c4db1f0c3d6563803e8a263a2d93d188f8e2ab2c1e281ab10d",
            "tlsh":  "4181eb34cd58cea30ac526eda5bd4141a4b91953aec1f85cb35907ac8f0e24f71b9b3d"
        },
        {
            "path":  "lib/index.js",
            "sha256":  "9dca1f59eb0c78a9a505209772ec60aecf59917caae4026d47be03421ebd7edc",
            "tlsh":  "132122b11cfa036062b2c583f50bd105e3a2cb697f72b518f1dc766989c2e70398e639"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "baileys-6.2.12.tgz",
            "hashes":  {
                "sha1":  "010abdddea7f5aae2e8782d282c14f6d6df72040",
                "sha512_sri":  "sha512-aMspU9SNzk8keHhzpazqAAgShFkPENHt/O9WPtsWGl9Xwpj8KEpYTDDVoL7PE5nO7XqMc6/UmTU4qgBhm0+Bbg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@alannxds/baileys/MAL-2026-18669.json"