pypi · Malicious package advisory
Malwaretermncolor
GHSA-hj9r-g48m-2r2j
Malicious code in termncolor (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 3.1.0` ## Source: google-open-source-security (bdc043b163e4ec6acada5d376a6a7becb3bba51c2b25307833500ec9fd8e1c4f) This package is malicious and allows an attack remote code execution on Windows and Linux machines. The package termncolor uses colorinal as a dependency. The package colorinal contains the malicious behavior. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/termncolor/MAL-2025-47454.json)) **References:** - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/termncolor/MAL-2025-47454.json - https://www.zscaler.com/blogs/security-research/supply-chain-risk-python-termncolor-and-colorinal-explained - https://github.com/advisories/GHSA-hj9r-g48m-2r2j
Compromised versions (1)
- = 3.1.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.