# GHSA-374F-3P4P-9QWF: Malicious code in @akapaki/baileys (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-09-29
- Modified: 2026-09-29

## Affected versions

- @akapaki/baileys (npm): 1.0.0
- @akapaki/baileys (npm): 1.0.2
- @akapaki/baileys (npm): 1.0.1

## 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](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/1fa66229c45e3a6dd673735c281e98120464c409/osv/malicious/npm/@akapaki/baileys/MAL-2026-17285.json))

## References

- https://github.com/ossf/malicious-packages/blob/1fa66229c45e3a6dd673735c281e98120464c409/osv/malicious/npm/@akapaki/baileys/MAL-2026-17285.json
- https://www.npmjs.com/package/@akapaki/baileys/v/1.0.0
- https://www.npmjs.com/package/@akapaki/baileys/v/1.0.1
- https://www.npmjs.com/package/@akapaki/baileys/v/1.0.2
- https://github.com/advisories/GHSA-374f-3p4p-9qwf

Page: https://cve.now/GHSA-374F-3P4P-9QWF

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
