MAL-2026-18873

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@poucode/baileys/MAL-2026-18873.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18873
Aliases
  • GHSA-mf5v-3qmw-mv6q
Published
2026-10-27T00:00:00Z
Modified
2026-11-20T01:17:27Z
Summary
Malicious code in @poucode/baileys (npm)
Details

@poucode/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) 120363429394939370@newsletter, 120363430414713911@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 (120c37dfae80b6937c076ffe1abe60e6787840e1a7b379c5b615173891529e84)

package.json declares the production dependency libsignal with the value github:tenka-san/libsignal-node, a GitHub shorthand that carries no commit SHA, no tag, and no semver constraint. On npm install, npm resolves this specifier to the current HEAD of that personal fork, fetches whatever source is at HEAD at install time, and executes any lifecycle scripts the fork ships. Whoever controls tenka-san/libsignal-node can push arbitrary code to that branch at any time and that code will run on every machine that installs @poucode/baileys@2.0.4. The resolved source is a personal fork unrelated to the upstream Baileys libsignal dependency, and the specifier is both off-registry and unpinned, so the installed bytes are not covered by the npm registry integrity hash for @poucode/baileys and can change silently between installs.

Source: ghsa-malware (e7a897e7a41a88915d245d4907080d94195177e2ed743fb06a9a779df3594064)

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": "cde7d68f4e593e2d38f98918d5e671670f5242b1baf153523d48ad18fba67530"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            }
        ],
        "ips": [],
        "urls": []
    },
    "malicious-packages-origins": [
        {
            "id": "GHSA-mf5v-3qmw-mv6q",
            "import_time": "2026-11-19T18:21:11.765969832Z",
            "modified_time": "2026-11-19T17:46:34Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "e7a897e7a41a88915d245d4907080d94195177e2ed743fb06a9a779df3594064",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-022903",
            "import_time": "2026-11-20T01:12:26.423414643Z",
            "modified_time": "2026-11-20T01:07:04Z",
            "sha256": "120c37dfae80b6937c076ffe1abe60e6787840e1a7b379c5b615173891529e84",
            "source": "amazon-inspector",
            "versions": [
                "2.0.4"
            ]
        },
        {
            "id": "IN-MAL-2026-022900",
            "import_time": "2026-11-20T01:12:26.327381876Z",
            "modified_time": "2026-11-20T01:06:44Z",
            "sha256": "4ef5d9675367d13af0747d5d9d1d47fd17aa44d4ab44c6747eaae57928dffa3d",
            "source": "amazon-inspector",
            "versions": [
                "2.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-022905",
            "import_time": "2026-11-20T01:12:26.501118494Z",
            "modified_time": "2026-11-20T01:07:20Z",
            "sha256": "742ea5d4ace8851a0d708be3a6bbfaba577e17eb69a53edba50216260a52faf2",
            "source": "amazon-inspector",
            "versions": [
                "2.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-022902",
            "import_time": "2026-11-20T01:12:26.393535314Z",
            "modified_time": "2026-11-20T01:06:57Z",
            "sha256": "a4d1fbaab631169dcf94fcd3beea22a7c30437127b41b0e54af4d087b6a5a219",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ]
        },
        {
            "id": "IN-MAL-2026-022901",
            "import_time": "2026-11-20T01:12:26.358329606Z",
            "modified_time": "2026-11-20T01:06:51Z",
            "sha256": "e86886cbe43039cfbbc9f96638bd6ce87d1bfb93db9f8ab606d7105495742b0e",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @poucode/baileys

Package

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

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.1
1.0.2
2.*
2.0.0
2.0.1
2.0.4

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"
    },
    {
        "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"
    },
    {
        "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": "931a24cfc688b2a5497c428190807f965a7c92b7f86743a02c3bdb3170415803",
            "tlsh": "4e910d34ce28ce630ac525e8a9bd0042a97959439ec5fc1cb35847ac8f4e15f71b9f2e"
        }
    ],
    "package_integrity": [
        {
            "filename": "baileys-2.0.4.tgz",
            "hashes": {
                "sha1": "93de95e0d298f19c38dfafac40c615e571891809",
                "sha512_sri": "sha512-n67GQeMlwQrYDNAFwSxziPhlK9+uSC5Qssno2oFTX8kBwyFOyrpmqLNJullFcXA9Z/Ga0SZzJR7p11MmelGuhg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@poucode/baileys/MAL-2026-18873.json"