Skip to main content
Menu
Advisories

Malicious code in @ikyzanx/baileys (npm)

GHSA-4RF3-5PMJ-PW8MPublished Updated GitHubMalware

Description

Source: amazon-inspector (6c64694820be3e6d15789cddda220597ead0ab1beed316980af701b4f2d0c80e)

package.json declares the libsignal dependency as github:tenka-san/libsignal-node — a bare owner/repo reference with no commit SHA, tag, or version pin. On npm install, npm fetches whatever bytes are currently at the HEAD of that third-party repository and installs them, executing any lifecycle scripts contained in them, with no integrity verification. The referenced GitHub owner tenka-san is unrelated to the npm publisher of this package (@ikyzanx), so the trust boundary of installing this package silently extends to a third-party account that can push new commits to that repository at any time. The package is a Baileys fork (a WhatsApp Web client library); the unrelated-owner libsignal source is a mutable off-registry code path that executes on every install.

---

Credit: OpenSSF (source)

Affected versions

References