MAL-2026-18731

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/zero2-baileys/MAL-2026-18731.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18731
Aliases
  • GHSA-79c7-wq2p-hx6p
Published
2026-10-27T00:00:00Z
Modified
2026-11-13T04:30:07Z
Summary
Malicious code in zero2-baileys (npm)
Details

zero2-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) 120363402057133599@newsletter, 120363428269086636@newsletter, 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 (7a5235f91f44e7bef307c2645a86d6c7f8c110ce131628b1bcfb2f7a6f646075)

zero2-baileys@3.6.0 declares its libsignal dependency as npm:@otaxayun/libsignal-node@latest in package.json. The alias points at an unrelated third-party npm scope with no version pin and no integrity check, so each npm install resolves @latest fresh and installs whatever that scope currently publishes. The resolved package is then loaded via require("libsignal") in lib/Signal/libsignal.js, which routes all end-to-end encrypt/decrypt operations through it, placing attacker-controlled code inside the Signal/crypto path of any bot built on this fork. The dependency source is off-registry in effect (an unrelated-scope alias at a mutable tag) and whoever controls @otaxayun/libsignal-node can ship arbitrary code into every installer on any subsequent install.

Source: ghsa-malware (ba57fc7bb4bcf036443073304ad388fbd23b2cfff4aeebfca8fcf50baf1ee0a3)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "iocs": {
        "domains": [],
        "files": [
            {
                "digests": {
                    "sha256": "f5446e769d90532bbcfa6ab1ff71cd9e1b7ed4cdf7ad1cfff5fc5009a7626a46"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            }
        ],
        "ips": [],
        "urls": []
    },
    "malicious-packages-origins": [
        {
            "id": "GHSA-79c7-wq2p-hx6p",
            "import_time": "2026-11-06T17:17:58.467788613Z",
            "modified_time": "2026-11-06T16:54:53Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "ba57fc7bb4bcf036443073304ad388fbd23b2cfff4aeebfca8fcf50baf1ee0a3",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-022757",
            "import_time": "2026-11-13T04:13:30.134836098Z",
            "modified_time": "2026-11-13T03:41:17Z",
            "sha256": "7a5235f91f44e7bef307c2645a86d6c7f8c110ce131628b1bcfb2f7a6f646075",
            "source": "amazon-inspector",
            "versions": [
                "3.6.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / zero2-baileys

Package

Name
zero2-baileys
View open source insights on deps.dev
Purl
pkg:npm/zero2-baileys

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.6.0

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": "e36e144686f30930c80473cc8fd0af84f95eb200b56ce01934c9ba7c05a393e0",
            "tlsh": "9f51ab25cc2cceb304c666eaa9ba5102507441935d91fc2c376c4bad4f5e2af71b9b3e"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/zero2-baileys/MAL-2026-18731.json"