Malicious Code Injection in @xayz/baileys: Covert Channel Subscription Vulnerability

@xayz/baileys Updated 30 Sep 2026

Summary

30/09/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17384: Malicious code in @xayz/baileys (npm). Affects @xayz/baileys versions 3.0.0 – 6.1.8. 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 @xayz/baileys package is a widely used library for interacting with the WhatsApp Web API. It allows developers to build applications that can send and receive messages, manage contacts, and utilize various WhatsApp features. However, this package has been identified as part of a family of malicious forks that compromise user accounts by injecting covert actions into the WhatsApp socket layer.

Vulnerability Detail

The vulnerability arises from malicious code embedded in specific versions of the @xayz/baileys package. This code executes an unauthorized FOLLOW query to subscribe the victim's WhatsApp account to attacker-controlled channels without their consent. The malicious action is executed using the installer's own authenticated WhatsApp session, allowing attackers to gain subscribers for their channels. The obfuscation techniques used to hide the target JIDs make it difficult for users to detect the malicious behavior during code review.

How To Fix

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

npm uninstall @xayz/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, consider removing the @xayz/baileys package from your project until a secure version is confirmed. You can do this by running: npm uninstall @xayz/baileys. Additionally, monitor your application for any unauthorized subscriptions or activities.

Conclusion

The @xayz/baileys package has been compromised by malicious code that allows attackers to subscribe users to unwanted channels. It is crucial for developers using this package to update to a secure version and monitor their applications for any unauthorized activities. Utilizing tools like Vulert can help in identifying and managing such vulnerabilities effectively.

See every vulnerability recorded for @xayz/baileys →

Share this vulnerability

FAQ

The affected versions include 6.1.8, 6.1.7, 6.1.6, 6.1.5, 6.1.4, 6.1.3, 6.1.2, 6.1.1, 6.1.0, 6.0.75, 6.0.6, 6.0.5, 6.0.4, 6.0.3, 6.0.2, 6.0.1, 6.0.0, 5.0.0, 4.0.0, and 3.0.0.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert provides real-time alerts. You can also check your application using the Vulert playground at Vulert Scanner without any signup.

If immediate updates are not possible, consider removing the package temporarily and monitoring your application for any suspicious activities or unauthorized subscriptions.

No, the malicious action does not exfiltrate credentials or execute arbitrary remote code. It solely subscribes the victim's account to channels without their consent.

The vulnerability was identified by OX Security, who reported the malicious behavior associated with the @xayz/baileys package.

How To Fix

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

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