Critical Malicious Code Vulnerability in supun-baileys Package

supun-baileys Updated 06 Feb 2026

Summary

03/02/2026
CRITICAL
No i
Critical
Not published

MAL-2026-675: Malicious code in supun-baileys (npm). Affected versions are not published. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The supun-baileys package is an npm library that is utilized in various JavaScript applications for specific functionalities. However, it has been identified to contain malicious code, posing a significant security risk to any system where it is installed. This vulnerability can lead to unauthorized access and control over the affected systems, making it crucial for developers to be aware of its implications.

Vulnerability Detail

The vulnerability originates from the inclusion of malicious code within the supun-baileys package. This code can compromise any computer that has the package installed, allowing attackers to gain full control over the system. The ramifications include potential data breaches, unauthorized access to sensitive information, and the installation of additional malicious software. The technical aspect of this vulnerability is classified under CWE-506, which indicates that the product contains embedded malicious code.

How To Fix

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

npm uninstall supun-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 workaround, ensure that all secrets and keys stored on the affected computer are rotated immediately from a different, secure computer. This step is crucial as the malicious code may have compromised sensitive information.

Conclusion

The supun-baileys package has been identified as containing malicious code, posing severe risks to any system where it is installed. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.

See every vulnerability recorded for supun-baileys →

Share this vulnerability

FAQ

The supun-baileys package is an npm library used in JavaScript applications, but it has been found to contain malicious code.

If you have the supun-baileys package installed, your system may be compromised. It is advisable to remove the package immediately.

Rotate all secrets and keys stored on the compromised system from a different, secure computer to mitigate potential data breaches.

Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

Removing the supun-baileys package is critical to prevent further exploitation and to secure your system from unauthorized access.

How To Fix

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

npm uninstall supun-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