Malicious Code Vulnerability in chai-promised-plugin: A Critical Security Risk

chai-promised-plugin Updated 19 Mar 2026

Summary

18/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1682: Malicious code in chai-promised-plugin (npm). Affects chai-promised-plugin versions 2.3.5. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

chai-promised-plugin is an npm package that extends the Chai assertion library, allowing for the use of promises in assertions. It is designed to enhance testing capabilities in JavaScript applications by providing a more fluent and readable syntax for asynchronous tests. However, the package has been identified to contain malicious code, posing significant security risks to applications that depend on it.

Vulnerability Detail

The vulnerability in chai-promised-plugin stems from the inclusion of malicious code that can compromise the integrity of applications using this package. This issue was reported by ReversingLabs and affects version 2.3.5 of the package. The malicious code can lead to unauthorized access, data breaches, or other harmful actions within the application, making it imperative for developers to address this vulnerability promptly.

How To Fix

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

npm uninstall chai-promised-plugin

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 chai-promised-plugin from your project until a secure version is available. You can do this by executing:

npm uninstall chai-promised-plugin

This will prevent the execution of any malicious code while you seek a safe alternative or wait for an update.

Conclusion

The discovery of malicious code in the chai-promised-plugin package highlights the importance of regularly monitoring and updating dependencies in software projects. Developers should take immediate action to update or remove the affected package to safeguard their applications from potential threats.

See every vulnerability recorded for chai-promised-plugin →

Share this vulnerability

FAQ

chai-promised-plugin is an npm package that enhances the Chai assertion library by allowing for promise-based assertions in JavaScript testing.

The malicious code can lead to unauthorized access and potential data breaches, compromising the security and integrity of your application.

Version 2.3.5 of chai-promised-plugin is known to contain the malicious code.

You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities in your software.

Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

How To Fix

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

npm uninstall chai-promised-plugin

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