Malicious code in @akapaki/baileys (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (c14fdf44df68d2544cc235039ef40a99c7df7bcbfc968e8d5809762031f0dd16) @akapaki/baileys@1.0.1 is an unofficial republish of the Baileys WhatsApp library under a new scope (author `paki`, empty README, repository `pernapasquale647-dotcom/paki-baileys`). Its package.json declares the `libsignal` dependency as `github:pernapasquale647-dotcom/paki-libsignal` — a personal GitHub source with no commit SHA, tag, or integrity pin. `npm install` will fetch whatever the repo's default branch currently contains and run any lifecycle scripts inside it on the installer's machine, giving the repository owner unilateral, unaudited control over code executed at install time. The shipped lib/ has not been diffed against upstream Baileys, so behavioral drift from the legitimate library cannot be excluded. ## Source: ghsa-malware (05141dbb72ff164991b09e418665ce4b79680d12dee2eccfd7b7655705529569) 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.
- Products
- @akapaki/baileys
- Affected versions
- 1.0.0, 1.0.1, 1.0.2
- Fixed versions
- Not specified
- CVEs
- Not specified
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 28 Oct 2026, 09:09 UTC · Revision 1
Source evidence
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (c14fdf44df68d2544cc235039ef40a99c7df7bcbfc968e8d5809762031f0dd16) @akapaki/baileys@1.0.1 is an unofficial republish of the Baileys WhatsApp library under a new scope (author `paki`, empty README, repository `pernapasquale647-dotcom/paki-baileys`). Its package.json declares the `libsignal` dependency as `github:pernapasquale647-dotcom/paki-libsignal` — a personal GitHub source with no commit SHA, tag, or integrity pin. `npm install` will fetch whatever the repo's default branch currently contains and run any lifecycle scripts inside it on the installer's machine, giving the repository owner unilateral, unaudited control over code executed at install time. The shipped lib/ has not been diffed against upstream Baileys, so behavioral drift from the legitimate library cannot be excluded. ## Source: ghsa-malware (05141dbb72ff164991b09e418665ce4b79680d12dee2eccfd7b7655705529569) 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.
osv:MAL-2026-17285
@akapaki/baileys
Fixed versions: Not specified
Complete source record
{
"id": "276800a2ae11a1f7454353ba4d74271fa9cfe0c821e3ceb6348b75cafce3eeb9",
"url": "https://osv.dev/vulnerability/MAL-2026-17285",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Malicious code in @akapaki/baileys (npm)",
"summary": "--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (c14fdf44df68d2544cc235039ef40a99c7df7bcbfc968e8d5809762031f0dd16) @akapaki/baileys@1.0.1 is an unofficial republish of the Baileys WhatsApp library under a new scope (author `paki`, empty README, repository `pernapasquale647-dotcom/paki-baileys`). Its package.json declares the `libsignal` dependency as `github:pernapasquale647-dotcom/paki-libsignal` — a personal GitHub source with no commit SHA, tag, or integrity pin. `npm install` will fetch whatever the repo's default branch currently contains and run any lifecycle scripts inside it on the installer's machine, giving the repository owner unilateral, unaudited control over code executed at install time. The shipped lib/ has not been diffed against upstream Baileys, so behavioral drift from the legitimate library cannot be excluded. ## Source: ghsa-malware (05141dbb72ff164991b09e418665ce4b79680d12dee2eccfd7b7655705529569) 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.",
"evidence": "osv:MAL-2026-17285",
"products": [
{
"name": {
"value": "@akapaki/baileys",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0.0",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.2",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.1",
"evidence": "/affected/0/versions"
}
]
}
],
"severity": "unknown",
"structured": {
"id": "MAL-2026-17285",
"aliases": [
"GHSA-gxxr-g857-qmrh",
"MAL-2026-17285"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "@akapaki/baileys",
"purl": "pkg:npm/%40akapaki/baileys",
"ecosystem": "npm"
},
"versions": [
"1.0.0",
"1.0.2",
"1.0.1"
],
"database_specific": {
"cwes": [
{
"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",
"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."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@akapaki/baileys/MAL-2026-17285.json",
"indicators": {
"evidence_files": [
{
"path": "package.json",
"tlsh": "4b51fe21c95cdf3309c622d9697a000250b949679d94fc1c37994b6c8f4f16f33bae2e",
"sha256": "61ed9bc45552e09554caf7f6273889e047fadb29d76b9b97b06c8ca69dfbabdf"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "e77218ed71233fa593a6cc7a7e9f81df37f8fea8",
"sha512_sri": "sha512-8MRaDBHbvKo5kvh9HyFQNgUolwev8zgBZDhw4sUMH79lQzmr/leJRRtAfDp523JgsZvbjZbwO0ynwnIUGAh87w=="
},
"filename": "baileys-1.0.0.tgz"
}
]
}
}
}
],
"modified": "2026-10-08T13:45:04.491685001Z",
"provider": "osv",
"references": [
"https://www.npmjs.com/package/@akapaki/baileys/v/1.0.0",
"https://www.npmjs.com/package/@akapaki/baileys/v/1.0.2",
"https://www.npmjs.com/package/@akapaki/baileys/v/1.0.1",
"https://github.com/advisories/GHSA-gxxr-g857-qmrh"
],
"provider_metadata": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-020672",
"sha256": "0b075a3687b7dca26037d732cb682f79c4b9f3ff761fc6268a71982a311f46a5",
"source": "amazon-inspector",
"versions": [
"1.0.0"
],
"import_time": "2026-09-29T21:18:13.395793258Z",
"modified_time": "2026-09-29T21:12:10Z"
},
{
"id": "IN-MAL-2026-020671",
"sha256": "28c9d6f6bb4eacd40be68ec8e1d2e33e70be84e1af18f9259647b8a77a8bf5f5",
"source": "amazon-inspector",
"versions": [
"1.0.2"
],
"import_time": "2026-09-29T21:18:13.315959167Z",
"modified_time": "2026-09-29T21:11:58Z"
},
{
"id": "IN-MAL-2026-020673",
"sha256": "c14fdf44df68d2544cc235039ef40a99c7df7bcbfc968e8d5809762031f0dd16",
"source": "amazon-inspector",
"versions": [
"1.0.1"
],
"import_time": "2026-09-29T21:18:13.505094191Z",
"modified_time": "2026-09-29T21:12:20Z"
},
{
"id": "GHSA-gxxr-g857-qmrh",
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"sha256": "05141dbb72ff164991b09e418665ce4b79680d12dee2eccfd7b7655705529569",
"source": "ghsa-malware",
"import_time": "2026-10-08T13:33:19.397889459Z",
"modified_time": "2026-10-08T13:26:08Z"
}
]
}
},
"related_cves": [],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 99673,
"published_at": "2026-09-29T21:11:58+00:00"
}