Malicious Code Vulnerability in terminalbrush Package
Summary
MAL-2026-444: Malicious code in terminalbrush (PyPI). Affects terminalbrush versions 0.1 – 0.2.4. 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 terminalbrush package, available on PyPI, is designed for terminal-based applications, providing functionalities that enhance user experience in command-line interfaces. However, it has been identified as having a significant security flaw that allows malicious code execution, posing a risk to users who download and install it.
Vulnerability Detail
The vulnerability originates from the terminalbrush package, which downloads an executable file from an external source and executes it, disguising it as a Python binary. This behavior can lead to the execution of harmful code, potentially compromising user data and system integrity. The specific URL for the executable was inactive at the time of analysis, preventing further investigation into its exact behavior. The campaign associated with this vulnerability is categorized as malicious, indicating clear intent to harm, such as stealing information.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall terminalbrush
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 should avoid installing the terminalbrush package until a secure version is released. If already installed, it is advisable to uninstall it using the command: pip uninstall terminalbrush.
Conclusion
The terminalbrush package has been identified as having a serious vulnerability that allows for the execution of malicious code. Users are advised to uninstall the package and monitor for any updates or patches. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities in the future.
See every vulnerability recorded for terminalbrush →
FAQ
Terminalbrush is a Python package designed to enhance terminal applications, but it has been found to contain malicious code.
The vulnerability allows the package to download and execute malicious executables, which can compromise user data and system security.
If you have installed terminalbrush, it is recommended to uninstall it immediately and monitor for updates or patches.
You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
To prevent similar vulnerabilities, always review package sources, check for community feedback, and utilize tools like Vulert for monitoring.