VulnWatch by ve1ve2
unknown

MAL-2026-20292: Malicious code in @kingorwot/my-baileys (npm)

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
@kingorwot/my-baileys

https://osv.dev/vulnerability/MAL-2026-20292 ↗

osvnpmno-fix-yet

Malicious code in @kingorwot/my-baileys (npm) --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (68d06b83a37647b71ca848c98345a769f6c1390c1b2c5f3df4c2d45fda42e42c) 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: npm:@kingorwot/my-baileys No fixed version published yet References: https://www.npmjs.com/package/@kingorwot/my-baileys/v/2.0.0 https://www.npmjs.com/package/@kingorwot/my-baileys/v/3.0.0