Malicious Code Injection in mikuhostt-baileys: Unauthorized WhatsApp Channel Subscriptions

mikuhostt-baileys Updated 02 Oct 2026

Summary

01/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17447: Malicious code in mikuhostt-baileys (npm). Affects mikuhostt-baileys versions 1.0.0 – 1.0.2. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The mikuhostt-baileys package is a fork of the Baileys WhatsApp Web library, designed to facilitate interactions with the WhatsApp Web API. It is utilized by developers to create applications that can send and receive messages, manage contacts, and perform other WhatsApp-related functionalities. However, this package has been compromised, leading to unauthorized actions being performed on behalf of users without their consent.

Vulnerability Detail

The vulnerability stems from the publisher injecting malicious code into the mikuhostt-baileys package. This code exploits the user's authenticated WhatsApp session to automatically subscribe the user's account to specific WhatsApp Channels (newsletters) chosen by the publisher. The malicious behavior is triggered 90 seconds after the connection is established, sending a follow request to the publisher's channel without the user's knowledge. This covert action can inflate the publisher's subscriber count, compromising user trust and privacy.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall mikuhostt-baileys

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can avoid using the mikuhostt-baileys package until a secure version is released. Alternatively, you can manually inspect the package code for any malicious behavior before using it in your application.

Conclusion

The mikuhostt-baileys package has been compromised, leading to unauthorized actions that exploit users' WhatsApp sessions. It is crucial for developers to stay informed about such vulnerabilities and take proactive measures to secure their applications. Regular updates and monitoring tools like Vulert can help mitigate risks associated with open-source dependencies.

See every vulnerability recorded for mikuhostt-baileys →

Share this vulnerability

FAQ

The vulnerability involves the injection of malicious code that uses the user's WhatsApp session to subscribe to channels without consent.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to test your application.

The primary consequence is the unauthorized subscription of users to WhatsApp Channels, which can lead to privacy violations and a loss of trust in the application.

Regularly update your dependencies and monitor them for vulnerabilities using tools like Vulert to ensure you are alerted to any issues.

If you have already used the compromised package, update it immediately and review your application's security to ensure no unauthorized actions have been taken.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall mikuhostt-baileys

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback