Malicious Code Vulnerability in @akapaki/baileys: Unverified Dependency Risks

@akapaki/baileys Updated 30 Sep 2026

Summary

29/09/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17285: Malicious code in @akapaki/baileys (npm). Affects @akapaki/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 package @akapaki/baileys is an unofficial republish of the Baileys WhatsApp library, designed for developers to interact with the WhatsApp API. It is maintained by an author named 'paki' and lacks a comprehensive README, which raises concerns about its legitimacy and security. The package's dependency on a personal GitHub repository for the 'libsignal' library introduces significant risks, as it allows for unverified code execution during installation.

Vulnerability Detail

The vulnerability stems from the package @akapaki/baileys version 1.0.1, which relies on a GitHub source for its 'libsignal' dependency without a commit SHA, tag, or integrity pin. This means that when users install the package, they may inadvertently execute malicious code contained in the dependency, as it can change at any time without notice. The lack of auditing and control over the code executed during installation poses a severe risk to users' systems and data integrity.

How To Fix

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

npm uninstall @akapaki/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, users can avoid using the @akapaki/baileys package until a secure version is released. Additionally, consider using the official Baileys library or other verified libraries for WhatsApp API interactions.

Conclusion

The @akapaki/baileys package presents a significant security risk due to its reliance on unverified dependencies, allowing for potential malicious code execution. Users are urged to update or replace the package to safeguard their applications.

See every vulnerability recorded for @akapaki/baileys →

Share this vulnerability

FAQ

The main risk is the potential execution of malicious code from its unverified dependency, which can compromise system security.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.

Yes, you should update to a patched version if available or consider removing the package and using a verified alternative.

If you cannot update or remove the package, ensure that your application is monitored for unusual behavior and consider implementing additional security measures.

Using unverified packages can lead to security vulnerabilities, data breaches, and loss of control over your application's code, making it essential to vet dependencies carefully.

How To Fix

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

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