MAL-2026-18787

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@chatbridgeworld/baileys/MAL-2026-18787.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18787
Aliases
  • GHSA-fjhf-q8f8-r96j
Published
2026-11-09T16:26:27Z
Modified
2026-11-13T03:45:11Z
Summary
Malicious code in @chatbridgeworld/baileys (npm)
Details

Malicious package. @chatbridgeworld/baileys is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). on connection it issues an authenticated w:mex newsletter FOLLOW mutation (query_id 7871414976211147) that silently subscribes every victim to attacker-controlled WhatsApp channels — hardcoded newsletter JIDs: 120363297591152843@newsletter, 120363351424590490@newsletter, 120363410165027550@newsletter, 120363412935005237@newsletter, 120363413699154858@newsletter, 120363413933221020@newsletter, 120363426302817140@newsletter, 120363428923746817@newsletter, 120363430013410680@newsletter, 120363433092350168@newsletter. Legitimate Baileys never hardcodes a channel JID or auto-follows on connect; all published versions are malicious. Detected by wormsign static analysis of the injected channel-subscription code.


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

Source: amazon-inspector (fec4c590590e68769337688429a7da8c011f695e51e6f39cbd00910317d2fc45)

package.json for @chatbridgeworld/baileys@1.0.2 declares the libsignal dependency as github:chatbridgegit/libsignal-node — a bare GitHub tree reference with no commit SHA and no version pin. On npm install, npm fetches whatever the default branch of that repository currently points at and executes any lifecycle scripts contained in those bytes, with no integrity check and no reproducibility guarantee across installs. Whoever controls the chatbridgegit/libsignal-node repository can push arbitrary code into every subsequent install of this package. The dependency name (libsignal) also matches the host package's own ecosystem naming (Baileys forks typically depend on the npm-published libsignal-node), consistent with a dependency-source redirection shape.

Source: ghsa-malware (b7a5a2853e26ae8d922803db487eb05b9a6f8ae50d426750c0a5cd1d5ca208ab)

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": {},
    "malicious-packages-origins": [
        {
            "id": "GHSA-fjhf-q8f8-r96j",
            "import_time": "2026-11-09T17:18:22.615558503Z",
            "modified_time": "2026-11-09T16:26:27Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "b7a5a2853e26ae8d922803db487eb05b9a6f8ae50d426750c0a5cd1d5ca208ab",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-022661",
            "import_time": "2026-11-13T03:36:31.887495413Z",
            "modified_time": "2026-11-13T03:29:56Z",
            "sha256": "df13f107e084a009e53f1845981830b3b6320cec0302545334457e52fbcb06b7",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-022660",
            "import_time": "2026-11-13T03:36:31.801765411Z",
            "modified_time": "2026-11-13T03:29:49Z",
            "sha256": "fec4c590590e68769337688429a7da8c011f695e51e6f39cbd00910317d2fc45",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @chatbridgeworld/baileys

Package

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

Affected ranges

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

Affected versions

0.*
0.0.0-stage
1.*
1.0.0
1.0.1
1.0.2

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": "7ce94e7e047ceae3f59b2b507ca54b52cf64e17e8d49040e5f4bdab68990b786",
            "tlsh": "7351d023c94cde2305f263dab5750211f4aa075f6590cc5f31f85bac8fb39a22656f2a"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@chatbridgeworld/baileys/MAL-2026-18787.json"