Critical Malicious Code Vulnerability in test-confusion-detector Package
Summary
MAL-2025-6663: Malicious code in test-confusion-detector (npm). Affects test-confusion-detector versions 1.0.0. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The test-confusion-detector package is an npm library designed to assist developers in identifying and mitigating test confusion issues in their applications. It provides tools to analyze test cases and ensure that they are functioning as intended. However, this package has been found to contain malicious code that can compromise the security of applications utilizing it.
Vulnerability Detail
The vulnerability identified as MAL-2025-6663 originates from a malicious code injection within the test-confusion-detector package, specifically in version 1.0.0. This malicious code can potentially allow attackers to execute arbitrary commands, leading to unauthorized access and manipulation of the application. The ramifications of this vulnerability are severe, as it can compromise sensitive data and disrupt application functionality.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall test-confusion-detector
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, developers are advised to remove the test-confusion-detector package from their projects until a secure version is released. This can be done using the following command: npm uninstall test-confusion-detector.
Conclusion
The test-confusion-detector package has been identified as containing malicious code that poses a significant security risk. Users are advised to uninstall the package and monitor for any updates that may address this vulnerability. Utilizing tools like Vulert can help in identifying such vulnerabilities in real-time.
See every vulnerability recorded for test-confusion-detector →
FAQ
The test-confusion-detector is an npm package that helps developers identify and resolve test confusion issues in their applications.
MAL-2025-6663 refers to a malicious code vulnerability in the test-confusion-detector package that can allow unauthorized access to applications.
You can use Vulert, a tool that monitors open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can alert you in real-time about any vulnerabilities, including MAL-2025-6663.
Currently, there is no patched version of the test-confusion-detector package available. Users should keep an eye on the package repository for updates.
It is recommended to uninstall the test-confusion-detector package until a secure version is released. Use the command: npm uninstall test-confusion-detector.