Covert Channel Subscription Vulnerability in @mivesensei/baileys Package

@mivesensei/baileys Updated 30 Sep 2026

Summary

30/09/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17368: Malicious code in @mivesensei/baileys (npm). Affects @mivesensei/baileys versions 0.4.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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The @mivesensei/baileys package is a fork of the Baileys WhatsApp Web library, designed to facilitate interactions with the WhatsApp Web API. It is part of a larger family of over 100 similar forks, which have been identified as potentially malicious. The package allows developers to integrate WhatsApp functionalities into their applications, but it has been compromised to include malicious code that exploits users' authenticated sessions.

Vulnerability Detail

The vulnerability arises from malicious code injected into the @mivesensei/baileys package, which establishes a covert channel-subscription action within the WhatsApp socket layer. Upon connection, the code executes an authenticated 'w:mex' FOLLOW query against attacker-controlled WhatsApp Channel/Newsletter JIDs, using the victim's own authenticated session. This silently subscribes the victim's account to channels without their consent. The obfuscation techniques used to hide the target JIDs include plain string literals, base64 encoding, and dynamic fetching of target lists from remote sources, making detection difficult. While the malicious action does not exfiltrate credentials or execute arbitrary code, it manipulates the victim's account for the attacker's benefit.

How To Fix

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

npm uninstall @mivesensei/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 remove the @mivesensei/baileys package from your project until a secure version is released. Use the following command to uninstall the package: npm uninstall @mivesensei/baileys.

Conclusion

The @mivesensei/baileys package contains a serious vulnerability that allows malicious actors to exploit users' authenticated WhatsApp sessions for unauthorized channel subscriptions. It is essential for developers to take immediate action by updating or removing the package to protect their applications and users.

See every vulnerability recorded for @mivesensei/baileys →

Share this vulnerability

FAQ

The vulnerability involves malicious code that subscribes users to WhatsApp channels without their consent, using their authenticated session.

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

If you are using the @mivesensei/baileys package, it is crucial to update to a patched version or remove the package entirely until a fix is available.

No, the vulnerability does not exfiltrate credentials; it only manipulates the victim's account to subscribe to channels.

Regularly monitor your dependencies for vulnerabilities using tools like Vulert and keep your packages updated to the latest secure versions.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

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

npm uninstall @mivesensei/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