MAL-2026-18774

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/kafbail/MAL-2026-18774.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18774
Aliases
  • GHSA-r9ff-73cq-qq8f
Published
2026-10-27T00:00:00Z
Modified
2026-11-09T23:15:35Z
Summary
Malicious code in kafbail (npm)
Details

kafbail 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) 120363402357934798@newsletter (stored as base64 strings), 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 (8d815af735aba7c71aa58d6b725e247c3aab1179468568d73e833680bcd0ea38)

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": "9cfbc997e39475314c3fbbf23fc9bc60181d661e5ec51e9f1473e631478fddf7"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            }
        ],
        "ips": [],
        "urls": []
    },
    "malicious-packages-origins": [
        {
            "id": "GHSA-r9ff-73cq-qq8f",
            "import_time": "2026-11-09T02:23:20.430398997Z",
            "modified_time": "2026-11-09T02:20:36Z",
            "sha256": "8d815af735aba7c71aa58d6b725e247c3aab1179468568d73e833680bcd0ea38",
            "source": "ghsa-malware",
            "versions": [
                "2.0.14",
                "2.0.13",
                "2.0.12"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / kafbail

Package

Affected ranges

Affected versions

2.*
2.0.12
2.0.13
2.0.14

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/kafbail/MAL-2026-18774.json"