compress-template (PyPI) · Malicious Code
Affects compress-templateSource GCVE Database
Malicious package : remove compress-template and rotate any secrets on hosts that installed it.
Data as of 5 Dec 2026, 21:42 UTC
Malicious package
Published to PyPI · OSV MAL-2026-21158
What to do
Remove compress-template from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIcompress-template | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The compress-template package on PyPI version 0.4.6 contains malicious code that executes an obfuscated command during import. This command downloads a script which subsequently downloads and executes a malicious executable. The campaign associated with this package is clearly malicious, involving malware delivery through obfuscation and remote code execution.