MAL-2026-20287: Malicious code in @izi-coder/baileys (npm)

Published Nov 20, 2026
·
Updated

--- -= Per source details. Do not edit below this line.=-

Source: amazon-inspector (c476c49d67a7760e7893b185a53a3b9de7cc6c005b5480493eb82f66bde8bac1) 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.

Affected Software

1 affected component
npm/@izi-coder/baileys=2.0.5, =6.0.9, =6.0.10

Event History

Nov 20, 2026
Advisory Published
via OSV·03:51 AM
Data Sourced
via OSV·03:51 AM
DescriptionAffected Software

Frequently Asked Questions

1

Who is exposed to install-time code execution?

Any environment that runs npm install for @izi-coder/baileys may be exposed, including developer workstations and build or CI systems. Its production dependency is fetched directly from a third-party GitHub repository rather than the npm registry.

2

What would an attacker need to exploit this supply-chain risk?

An attacker would need control of the Cogils/libsignal-node repository or the source resolved at its current branch tip. Because no commit is pinned, npm can fetch whatever code that repository currently serves and run its lifecycle scripts during installation.

3

How can I determine whether this package is present?

Check project manifests and installed dependency trees or lockfiles for @izi-coder/baileys. The referenced package releases include 2.0.5, 6.0.9, and 6.0.10.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203