Malicious Code Vulnerability in @chatunity/baileys: Risk of Code Execution

@chatunity/baileys Updated 30 Sep 2026

Summary

29/09/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17287: Malicious code in @chatunity/baileys (npm). Affects @chatunity/baileys versions 3.2.0 – 3.2.1. 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 @chatunity/baileys package is a Node.js library designed for building chat applications using the WhatsApp Web API. It provides developers with tools to interact with WhatsApp's messaging features. However, this package has been found to contain a significant vulnerability due to its reliance on an off-registry git source for one of its dependencies, libsignal. This dependency can be altered without any integrity checks, posing a risk to users.

Vulnerability Detail

The vulnerability arises from the package.json file declaring a runtime dependency on 'libsignal' sourced from a mutable GitHub repository. This repository does not have a fixed commit SHA or tag, meaning that during 'npm install', the latest code from the default branch is fetched and executed. If malicious code is introduced into this repository, it will execute on every installation of the package, leading to potential unauthorized access or data manipulation. The lack of integrity checks means that there is no safeguard against such changes, making it a critical security risk.

How To Fix

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

npm uninstall @chatunity/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, avoid using the @chatunity/baileys package until a secure version is released. If you must use it, consider forking the repository and pinning the dependency to a specific commit SHA that you have verified as safe.

Conclusion

The @chatunity/baileys package has a critical vulnerability due to its reliance on an unverified git source for a key dependency. Users are advised to update to the latest version or implement workarounds to mitigate risks associated with this issue. Regular monitoring for vulnerabilities using tools like Vulert is recommended.

See every vulnerability recorded for @chatunity/baileys →

Share this vulnerability

FAQ

The vulnerability allows for the execution of potentially malicious code due to the mutable nature of its dependency on libsignal from an off-registry source.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.

The risks include unauthorized access to your application, data manipulation, and potential compromise of user data due to the execution of malicious code.

Yes, updating to the latest version of @chatunity/baileys will provide a patch for this vulnerability.

If immediate updates are not possible, consider forking the repository and pinning the dependency to a known safe commit as a temporary measure.

How To Fix

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

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