MAL-2026-20284: Malicious code in @iky-erza/baileys (npm)

Published Nov 20, 2026
·
Updated

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

Source: amazon-inspector (967763a0fcb8295a6cee58761594b585651571a5be455f106435bc70aa59b400) package.json declares the runtime dependency libsignal as github:tenka-san/libsignal-node with no commit SHA, tag, or semver pin. On npm install, npm fetches whatever the repository's default branch HEAD currently points at and runs any lifecycle scripts inside it on the installer's machine, with no integrity check and no version pinning. Whoever controls that GitHub account can change the resolved code at any time without republishing this package, and installers running npm install @iky-erza/baileys will pick up the change on the next install. This is an off-registry, mutable dependency source — a different trust surface from the registry-published libsignal used by upstream Baileys. A separate static match on lib/Utils/generics.js corresponds to standard cross-platform ping dispatch for connectivity checks and is not by itself indicative of exfiltration.

Affected Software

1 affected component
npm/@iky-erza/baileys=0.1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Pin `libsignal` (`github:tenka-san/libsignal-node`) to an immutable commit SHA instead of leaving it unpinned.

    package.json libsignal dependency reference

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 this issue?

Systems that run npm install for @iky-erza/baileys are exposed, including developer workstations and build or deployment environments. The risk occurs when npm resolves the unpinned GitHub dependency libsignal from the repository's current default-branch HEAD.

2

What does an attacker need to exploit it?

An attacker would need control of the GitHub account or repository referenced as tenka-san/libsignal-node. They could change the default branch so that a later install retrieves altered code, including lifecycle scripts that run on the installer's machine.

3

Is a normal npm installation affected?

Yes. The package.json dependency uses a GitHub repository reference without a commit SHA, tag, semver pin, or integrity check, so npm install can fetch whatever code the repository's default branch points to at installation time.

4

What can be done if the package cannot immediately be removed or replaced?

Avoid fresh or repeated installations that resolve this dependency from the mutable GitHub default branch. Pin the dependency to a reviewed immutable commit SHA and review any lifecycle scripts before permitting installation in developer or automated environments.

5

How can I determine whether an environment may already be affected?

Review installations of @iky-erza/baileys and determine which revision npm retrieved for the GitHub-hosted libsignal dependency. Also inspect installation and build environments for lifecycle-script execution associated with that dependency.

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