Find a vulnerability
Search criteria
Related vulnerabilities
MAL-2026-18731 (GHSA-79C7-WQ2P-HX6P)
Vulnerability from ossf_malicious_packages – Published: 2026-10-27 00:00 – Updated: 2026-11-13 04:15 – Source website| Ecosystem | Package | Versions |
|---|---|---|
| npm |
zero2-baileys
|
Affected: All versions (semver)
3.6.0
|
zero2-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) 120363402057133599@newsletter, 120363428269086636@newsletter, using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).
zero2-baileys@3.6.0 declares its libsignal dependency as npm:@otaxayun/libsignal-node@latest in package.json. The alias points at an unrelated third-party npm scope with no version pin and no integrity check, so each npm install resolves @latest fresh and installs whatever that scope currently publishes. The resolved package is then loaded via require("libsignal") in lib/Signal/libsignal.js, which routes all end-to-end encrypt/decrypt operations through it, placing attacker-controlled code inside the Signal/crypto path of any bot built on this fork. The dependency source is off-registry in effect (an unrelated-scope alias at a mutable tag) and whoever controls @otaxayun/libsignal-node can ship arbitrary code into every installer on any subsequent install.
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.
| Type | Indicator | Hashes |
|---|---|---|
| File |
lib/Socket/newsletter.js
|
sha256
f5446e769d90532bbcfa6ab1ff71cd9e1b7ed4cdf7ad1cfff5fc5009a7626a46 |
| Evidence file |
package.json
|
sha256
e36e144686f30930c80473cc8fd0af84f95eb200b56ce01934c9ba7c05a393e0tlsh
9f51ab25cc2cceb304c666eaa9ba5102507441935d91fc2c376c4bad4f5e2af71b9b3e |
- CWE-506 - Embedded Malicious Code
{
"affected": [
{
"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": "e36e144686f30930c80473cc8fd0af84f95eb200b56ce01934c9ba7c05a393e0",
"tlsh": "9f51ab25cc2cceb304c666eaa9ba5102507441935d91fc2c376c4bad4f5e2af71b9b3e"
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "zero2-baileys"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"versions": [
"3.6.0"
]
}
],
"aliases": [
"GHSA-79c7-wq2p-hx6p"
],
"credits": [
{
"contact": [
"inspector-research@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
},
{
"contact": [
"https://cyberxyz.io"
],
"name": "CyberXYZ",
"type": "FINDER"
}
],
"database_specific": {
"iocs": {
"domains": [],
"files": [
{
"digests": {
"sha256": "f5446e769d90532bbcfa6ab1ff71cd9e1b7ed4cdf7ad1cfff5fc5009a7626a46"
},
"paths": [
"lib/Socket/newsletter.js"
]
}
],
"ips": [],
"urls": []
},
"malicious-packages-origins": [
{
"id": "GHSA-79c7-wq2p-hx6p",
"import_time": "2026-11-06T17:17:58.467788613Z",
"modified_time": "2026-11-06T16:54:53Z",
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "SEMVER"
}
],
"sha256": "ba57fc7bb4bcf036443073304ad388fbd23b2cfff4aeebfca8fcf50baf1ee0a3",
"source": "ghsa-malware"
},
{
"id": "IN-MAL-2026-022757",
"import_time": "2026-11-13T04:13:30.134836098Z",
"modified_time": "2026-11-13T03:41:17Z",
"sha256": "7a5235f91f44e7bef307c2645a86d6c7f8c110ce131628b1bcfb2f7a6f646075",
"source": "amazon-inspector",
"versions": [
"3.6.0"
]
}
]
},
"details": "zero2-baileys is a fork of the Baileys WhatsApp Web library that silently subscribes the installer\u0027s 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) 120363402057133599@newsletter, 120363428269086636@newsletter, using the victim\u0027s authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7a5235f91f44e7bef307c2645a86d6c7f8c110ce131628b1bcfb2f7a6f646075)\nzero2-baileys@3.6.0 declares its `libsignal` dependency as `npm:@otaxayun/libsignal-node@latest` in package.json. The alias points at an unrelated third-party npm scope with no version pin and no integrity check, so each `npm install` resolves `@latest` fresh and installs whatever that scope currently publishes. The resolved package is then loaded via `require(\"libsignal\")` in lib/Signal/libsignal.js, which routes all end-to-end encrypt/decrypt operations through it, placing attacker-controlled code inside the Signal/crypto path of any bot built on this fork. The dependency source is off-registry in effect (an unrelated-scope alias at a mutable tag) and whoever controls `@otaxayun/libsignal-node` can ship arbitrary code into every installer on any subsequent install.\n\n## Source: ghsa-malware (ba57fc7bb4bcf036443073304ad388fbd23b2cfff4aeebfca8fcf50baf1ee0a3)\nAny 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.\n",
"id": "MAL-2026-18731",
"modified": "2026-11-13T04:15:09.376678968Z",
"published": "2026-10-27T00:00:00Z",
"references": [
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-79c7-wq2p-hx6p"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/zero2-baileys"
},
{
"type": "WEB",
"url": "https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/"
},
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/zero2-baileys/v/3.6.0"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in zero2-baileys (npm)"
}