VYPR

npm · Malicious package advisory

Malware

zero-baileys

GHSA-2q5p-vqh2-8c92

Malicious code in zero-baileys (npm)

Details

**Severity:** Critical

**Affected versions:** `= 2.7.0`

## Source: amazon-inspector (58d472a4390be835fc8ffd5e62a7d3b2bb7270ad6ea651d9cd15bc7abd7735c8)
package.json redirects the `libsignal` dependency to `npm:@otaxayun/libsignal-node@latest`. The `@latest` dist-tag is mutable and unpinned, so each `npm install` of zero-baileys resolves whatever tarball the `@otaxayun` scope currently publishes and executes any lifecycle scripts (preinstall/install/postinstall) it contains. Upstream Baileys resolves libsignal from a pinned source; the alias here substitutes an unofficial third-party scope as the trust root for a core cryptographic dependency, with no version pin and no integrity check. The static match on `child_process` + `https.request` + `POST` in lib/Utils/messages-media.js:28 corresponds to media-download helpers in the runtime library and is not itself an install-time exfil path.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/ea10930d581ebcec46b61de86d2056d5f3555444/osv/malicious/npm/zero-baileys/MAL-2026-16280.json))

**References:**
- https://github.com/ossf/malicious-packages/blob/ea10930d581ebcec46b61de86d2056d5f3555444/osv/malicious/npm/zero-baileys/MAL-2026-16280.json
- https://www.npmjs.com/package/zero-baileys/v/2.7.0
- https://github.com/advisories/GHSA-2q5p-vqh2-8c92

Compromised versions (1)

  • = 2.7.0

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.