@hanssoft/baileys@10.0.0
Vulnerability report · Last retrieved from osv.dev October 8, 2026 at 4:37 AM UTC
OSV ID
MAL-2026-4392
Ecosystem
npm
Summary
This package is a fork of the WhatsApp library Baileys whose metadata (homepage, repository, author) points at the upstream @whiskeysockets/baileys, while the code is modified. When a consumer calls the documented entry point makeWASocket(config), the chain reaches makeNewsletterSocket in lib/Socket/newsletter.js. Around line 181-189, an undocumented setTimeout fires 80 seconds after socket creation and fetches https://raw.githubusercontent.com/Sanz-notdev/IdChannel/refs/heads/main/Push/Idchannel.json — a mutable list hosted on a personal GitHub account unrelated to the upstream project. For each newsletter ID in that list, the package issues newsletterWMexQuery(id, QueryIds.FOLLOW) over the consumer's authenticated WhatsApp session, silently subscribing the installer's account to author-chosen channels. The list is on a mutable main branch, so targets can be changed at any time after install. There is no opt-in, no README disclosure, and the behavior runs as a side effect of normal library use. This is a silent-relay/backdoor: the consumer's authenticated identity is covertly used to perform actions for the author's benefit, and the inherited upstream metadata makes the fork look like the legitimate Baileys package.
Source: amazon-inspector (e3f83fb38a98b69c322df069a26c495101aa35682df8f83641b00e2ce40a99bd)
Protect your entire dependency tree
Scan your lock files automatically on every PR. Block malicious packages before they reach production.