MAL-2026-18693

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ruby-baileys/MAL-2026-18693.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18693
Aliases
  • GHSA-8hw9-ch78-32cg
Published
2026-10-26T00:00:00Z
Modified
2026-11-19T07:30:04Z
Summary
Malicious code in ruby-baileys (npm)
Details

ruby-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 src/Socket/index.js sends the WhatsApp w:mex FOLLOW query for channel invite codes 0029VbDO8tI2phHLTSN2ed0U, 0029VbDXYlKDJ6H1D7Dm0f13, 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: ghsa-malware (3b65cd62548c96b989320ca89716466aed4b6c6e1c84908bab987f31755fcca2)

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": "40ed81a8d29803b6a1f027a2014c2c421ad3e538d30ea0d57c876978831fe622"
                },
                "paths": [
                    "src/Socket/index.js"
                ]
            }
        ],
        "ips": [],
        "urls": [
            "https://whatsapp.com/channel/0029VbDO8tI2phHLTSN2ed0U",
            "https://whatsapp.com/channel/0029VbDXYlKDJ6H1D7Dm0f13"
        ]
    },
    "malicious-packages-origins": [
        {
            "id": "GHSA-8hw9-ch78-32cg",
            "import_time": "2026-11-19T07:19:04.450827797Z",
            "modified_time": "2026-11-19T05:50:50Z",
            "sha256": "3b65cd62548c96b989320ca89716466aed4b6c6e1c84908bab987f31755fcca2",
            "source": "ghsa-malware",
            "versions": [
                "1.5.18",
                "1.5.17",
                "0.0.0-stage"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / ruby-baileys

Package

Affected ranges

Affected versions

0.*
0.0.0-stage
1.*
1.5.17
1.5.18

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"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ruby-baileys/MAL-2026-18693.json"