Skip to main content
Menu
Advisories

Malicious code in @akapaki/baileys (npm)

GHSA-374F-3P4P-9QWFPublished Updated GitHubMalware

Description

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.

---

Credit: OpenSSF (source)

Affected versions

References