MAL-2026-4392

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/withdrawn/npm/@hanssoft/baileys/MAL-2026-4392.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4392
Aliases
  • GHSA-rc6w-48x5-fxc4
Withdrawn
2026-05-26T21:28:12Z
Published
2026-05-21T09:13:25Z
Modified
2026-08-13T22:15:20Z
Summary
Malicious code in @hanssoft/baileys (npm)
Details

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

Source: amazon-inspector (e3f83fb38a98b69c322df069a26c495101aa35682df8f83641b00e2ce40a99bd)

This package is a fork of the WhatsApp library Baileys whose metadata (homepage, repository, author) points at the upstream @whiskeysockets/baileys, while the code is modified. When a consumer calls the documented entry point makeWASocket(config), the chain reaches makeNewsletterSocket in lib/Socket/newsletter.js. Around line 181-189, an undocumented setTimeout fires 80 seconds after socket creation and fetches https://raw.githubusercontent.com/Sanz-notdev/IdChannel/refs/heads/main/Push/Idchannel.json — a mutable list hosted on a personal GitHub account unrelated to the upstream project. For each newsletter ID in that list, the package issues newsletterWMexQuery(id, QueryIds.FOLLOW) over the consumer's authenticated WhatsApp session, silently subscribing the installer's account to author-chosen channels. The list is on a mutable main branch, so targets can be changed at any time after install. There is no opt-in, no README disclosure, and the behavior runs as a side effect of normal library use. This is a silent-relay/backdoor: the consumer's authenticated identity is covertly used to perform actions for the author's benefit, and the inherited upstream metadata makes the fork look like the legitimate Baileys package.

Source: ghsa-malware (7f278d70381b74d8b1cb1ea0d5609c988d13dbc32706966160bf70c7652ae728)

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
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-003790",
            "import_time": "2026-05-26T05:51:19.176210911Z",
            "modified_time": "2026-05-21T09:13:25Z",
            "sha256": "e3f83fb38a98b69c322df069a26c495101aa35682df8f83641b00e2ce40a99bd",
            "source": "amazon-inspector",
            "versions": [
                "10.0.0"
            ]
        },
        {
            "id": "GHSA-rc6w-48x5-fxc4",
            "import_time": "2026-08-13T22:11:44.643529799Z",
            "modified_time": "2026-08-13T15:55:15Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "7f278d70381b74d8b1cb1ea0d5609c988d13dbc32706966160bf70c7652ae728",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / @hanssoft/baileys

Package

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

Affected ranges

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

Affected versions

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"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "lib/Socket/newsletter.js",
            "sha256": "9f5798c1ede284ef0e8a623b1a23b3690e27317cf5b2df7e8dac9e53ca9d0885",
            "tlsh": "af629452a6fd56a517a37054e67fb0e0b321f203796598637e8cc4020f4e2dda8b3bd9"
        },
        {
            "path": "package.json",
            "sha256": "6e4ab2898203438d3ec172cd319ef4f33898702a9573bc28fe3950861c2e8e6f",
            "tlsh": "ae61dc25cc5cceb314c636eda4765102646905535e95fc2c336c4bac4f5e2af32b9b2e"
        }
    ],
    "package_integrity": [
        {
            "filename": "baileys-10.0.0.tgz",
            "hashes": {
                "sha1": "cad32f83b65ffbe2e2b57058a1b6bdbbc0eb08b1",
                "sha512_sri": "sha512-xJZ5dnCS6iRTgoLZeP0xKeY3sij7qZUGLXn2avsCDs1xMy5NXguYZXxplgjnA0hZE/a94voQqre0xlIGDvR9ew=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/withdrawn/npm/@hanssoft/baileys/MAL-2026-4392.json"