Critical Malicious Code Vulnerability in tcsp-draw-test Package
Summary
MAL-2025-191019: Malicious code in tcsp-draw-test (npm). Affects tcsp-draw-test versions 1.0.5. 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 tcsp-draw-test package is an npm library designed for drawing tests in various applications. It is utilized for creating visual representations and testing graphical outputs. However, it has been found to contain malicious code that compromises the security of any system where it is installed.
Vulnerability Detail
The tcsp-draw-test package has been identified as containing embedded malicious code, which poses a severe security risk. This vulnerability originates from two sources: Amazon Inspector and GHSA Malware reports. Any system running this package is considered fully compromised, with potential unauthorized access to sensitive information such as secrets and keys. The malicious code can lead to further exploitation and data breaches, 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 tcsp-draw-test
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, users should immediately uninstall the tcsp-draw-test package using the following command: npm uninstall tcsp-draw-test. Additionally, ensure that all sensitive data is secured and rotated to prevent unauthorized access.
Conclusion
The tcsp-draw-test package has been identified as a significant security risk due to embedded malicious code. Immediate action is required to uninstall the package and secure any sensitive information. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for tcsp-draw-test →
FAQ
The tcsp-draw-test package is an npm library used for drawing tests in applications, allowing developers to create visual representations and test graphical outputs.
The malicious code can compromise your system's security, allowing unauthorized access to sensitive information and potentially leading to data breaches.
If you have the tcsp-draw-test package installed, you should uninstall it immediately and rotate any sensitive information stored on your system.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check if your application is affected by visiting the Vulert playground at Vulert Scanner without needing to sign up.
While uninstalling the package is crucial, there is no guarantee that it will remove all malicious software that may have been installed as a result of the compromise.