Malicious Code Detected in bshtest Package - Security Alert
Summary
MAL-2025-16232: Malicious code in bshtest (npm). Affected versions are not published. 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 bshtest package is an npm library designed for testing purposes, providing developers with tools to facilitate the testing of their applications. However, it has been identified as containing malicious code, which poses significant security risks to users and their projects. The presence of such code can lead to unauthorized access, data breaches, and other malicious activities.
Vulnerability Detail
The vulnerability in the bshtest package originates from the inclusion of malicious code that can compromise the security of applications utilizing this package. This code can execute harmful operations without the user's consent, potentially leading to data theft or system corruption. The vulnerability is present in all versions starting from 0, making it critical for users to take immediate action to mitigate risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bshtest
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 bshtest package and instead utilize other testing libraries that are known to be secure. For example, consider using 'jest' or 'mocha' for testing purposes.
Conclusion
The bshtest package has been identified as containing malicious code, posing serious security risks to users. It is crucial to remove this package from your projects and consider secure alternatives to ensure the safety of your applications.
See every vulnerability recorded for bshtest →
FAQ
bshtest is an npm package designed for testing applications, but it has been found to contain malicious code.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.
You should uninstall the bshtest package immediately and replace it with a secure alternative.
Currently, there is no patched version available for the bshtest package. It is advised to remove it from your project.
Using the bshtest package can lead to unauthorized access, data breaches, and other malicious activities due to the embedded malicious code.