Critical Malicious Code Vulnerability in your-test-renderer Package
Summary
MAL-2025-5740: Malicious code in your-test-renderer (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 'your-test-renderer' package is an npm library designed for rendering tests in JavaScript applications. It is commonly used in development environments to facilitate testing of UI components. However, this package has been identified to contain embedded malicious code, posing significant security risks to any system utilizing it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the 'your-test-renderer' package. This code can compromise the security of any computer where the package is installed, potentially allowing unauthorized access to sensitive information such as secrets and keys. The ramifications of this vulnerability are severe, as it could lead to complete control of the affected system by an external entity, making it imperative for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall your-test-renderer
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 avoid using the 'your-test-renderer' package altogether and consider alternative libraries that provide similar functionality without the associated risks. Additionally, ensure that all secrets and keys stored on the affected system are rotated immediately.
Conclusion
The 'your-test-renderer' package has been identified as containing malicious code that poses a significant security risk. Immediate action is required to remove the package and secure any sensitive information. Users are encouraged to monitor their applications for vulnerabilities using tools like Vulert.
See every vulnerability recorded for your-test-renderer →
FAQ
It is an npm library used for rendering tests in JavaScript applications, particularly for UI components.
The malicious code can compromise your system's security, allowing unauthorized access to sensitive information and potentially giving control of your system to an external entity.
You should immediately remove the 'your-test-renderer' package and rotate any sensitive information stored on your system.
Currently, there is no patch available. The best course of action is to remove the package until a secure version is released.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file. You can also check your application against this vulnerability using the Vulert playground without any signup.