Skip to main content
Menu
Advisories

Malicious code in @kingorwot/my-baileys (npm)

MAL-2026-20292Published Updated OpenSSFMalware

Description

This package is a fork of the Baileys WhatsApp library with two installer-facing issues. First, package.json declares a runtime dependency whatsapp-rust-bridge-baron sourced from a bare git URL (git+https://github.com/7ucg/whatsapp-rust-bridge.git) with no commit SHA, tag, or integrity hash. On npm install, npm fetches whatever HEAD of that third-party GitHub repo currently returns and installs it with lifecycle scripts enabled; no vendored copy is shipped despite the bundledDependencies listing. The repository owner (7ucg) is independent of the publisher, so whoever controls that repo can ship arbitrary code into the installer's node_modules at any future install. Second, on socket creation in lib/index.cjs a hidden setTimeout(..., 120000) fetches https://raw.githubusercontent.com/dgxeonking/strings/refs/heads/main/strings.json from the author's GitHub at a mutable branch and iterates the list, silently invoking QueryIds.FOLLOW on the installer's logged-in WhatsApp session to add the installer's account as a follower of each channel ID. The behavior is undocumented and the list is author-mutable. The off-registry unpinned git dependency is the primary installer-harm vector; the covert auto-follow is a secondary misuse of the installer's authenticated WhatsApp session.

Affected versions

References