Skip to main content
Menu
Advisories

Malicious code in @chatunity/baileys (npm)

GHSA-6JGR-8F9M-5RP7Published Updated GitHubMalware

Description

Source: amazon-inspector (b6d06d6b516b21b0ac6ed45e5653dca243695a2c17326669ec58498e4c9bcf45)

package.json declares the runtime dependency libsignal with the value github:chatunitycenter/libsignal-node, an off-registry git source with no commit SHA or tag pin. On npm install, npm fetches whatever the default branch of that repository currently contains and executes any lifecycle scripts inside it, and the module is then required transitively via lib/Signal/libsignal.js from the package's main entry. The dependency source is mutable and integrity-unchecked: any change pushed to that branch (or takeover of the owning account) is executed on every subsequent install of this package version, with no version bump or artifact change on the npm side. The owning GitHub account is unrelated to established libsignal publishers and there is no signature or hash gating the fetched content.

---

Credit: OpenSSF (source)

Affected versions

References