Malicious Code Detected in terminalcolornew Package - Camera Exfiltration Vulnerability
Summary
MAL-2025-191892: Malicious code in terminalcolornew (PyPI). Affects terminalcolornew versions 0.0.1 – 0.0.3. 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 terminalcolornew package, available on PyPI, is designed for terminal color manipulation in Python applications. It allows developers to enhance the visual output of their command-line interfaces. However, a recent vulnerability has been identified that compromises user privacy by enabling unauthorized access to the computer's camera.
Vulnerability Detail
The vulnerability originates from malicious code embedded in the terminalcolornew package, specifically in versions 0.0.1, 0.0.2, and 0.0.3. When this package is used, it attempts to take a photo using the computer's camera without the user's consent and exfiltrates the captured image. This poses significant risks, including unauthorized surveillance and data theft, making it a serious infostealer threat.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall terminalcolornew
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 measure, users can avoid using the terminalcolornew package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The terminalcolornew package has been identified as containing malicious code that compromises user privacy by accessing the camera and exfiltrating images. Users are advised to uninstall the package immediately and remain vigilant for updates or alternative solutions. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for terminalcolornew →
FAQ
terminalcolornew is a Python package that enhances terminal output by allowing developers to manipulate text colors and styles.
The vulnerability allows the package to access the computer's camera and exfiltrate images, compromising user privacy and security.
You should uninstall the terminalcolornew package immediately using 'pip uninstall terminalcolornew' to protect your system.
Currently, there are no patched versions of terminalcolornew available. It is recommended to avoid using this package until a secure version is released.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. You can check your application against known vulnerabilities using the Vulert playground without any signup.