cvelo
P2 · HighMalware

Malicious code in @izi-coder/baileys (npm)

  • GHSA-h5f6-w383-w67g

Description

This unofficial fork of Baileys declares a production dependency sourced directly from a GitHub repository with no commit pin: `"libsignal": "github:Cogils/libsignal-node"` in package.json. `npm install` resolves that source off-registry, fetches whatever the branch tip currently holds, and runs any lifecycle scripts inside it. The referenced repository is owned by a third party (`Cogils`), unrelated to the upstream WhiskeySockets/Baileys publisher, so whoever controls that repo controls code executed on the installer's machine at install time. The package also presents low-trust provenance: it is published under `@izi-coder` as an unofficial Baileys fork, the manifest's repository URL points at a Telegram channel rather than a source host, and `lib/index.js` prints a hostile ASCII banner and Telegram self-promo links on import. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/374928f6258cf3beac8c6f24cee0a67100be4219/osv/malicious/npm/@izi-coder/baileys/MAL-2026-20287.json))

Text from the GitHub Advisory record.

Affected

  • @izi-coder/baileysnpm

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.