Malicious Code Vulnerability in test-confusion2 Package

test-confusion2 Updated 02 Oct 2025

Summary

31/07/2025
CRITICAL
No i
Critical
Not published

MAL-2025-6664: Malicious code in test-confusion2 (npm). Affects test-confusion2 versions 1.0.0. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The test-confusion2 package is an npm library designed for testing purposes, providing developers with tools to facilitate the testing of their applications. However, this package has been identified to contain malicious code that can compromise the security of applications utilizing it. The vulnerability affects version 1.0.0 of the package, making it crucial for developers to be aware of its implications.

Vulnerability Detail

The vulnerability identified as MAL-2025-6664 originates from malicious code embedded within the test-confusion2 package. This code can lead to unauthorized access, data breaches, or other harmful actions within applications that incorporate this package. The malicious nature of the code poses significant risks, especially in production environments where sensitive data may be handled.

How To Fix

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

npm uninstall test-confusion2

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, consider using alternative testing libraries that do not have known vulnerabilities. Ensure to review the security status of any package before integrating it into your project.

Conclusion

The test-confusion2 package has been identified to contain malicious code, posing significant risks to applications that utilize it. Developers should take immediate action to uninstall the affected version and consider alternative libraries until a secure version is available. Regular monitoring of dependencies using tools like Vulert can help maintain application security.

See every vulnerability recorded for test-confusion2 →

Share this vulnerability

FAQ

The test-confusion2 package is an npm library used for testing applications, providing various tools to assist developers in their testing processes.

MAL-2025-6664 refers to a vulnerability in the test-confusion2 package that contains malicious code capable of compromising application security.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By analyzing your package-lock.json file, Vulert can help you identify if your application is affected. You can also use the Vulert playground at Vulert Scanner to check without signing up.

If you are using version 1.0.0 of the test-confusion2 package, it is recommended to uninstall it immediately and look for alternative libraries until a secure version is released.

Yes, there are several alternative testing libraries available in the npm ecosystem. It is advisable to research and select libraries that have a good security track record.

How To Fix

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

npm uninstall test-confusion2

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