beautifytext (PyPI) · Malicious Code
Affects beautifytextSource GCVE Database
Malicious package : remove beautifytext and rotate any secrets on hosts that installed it.
Data as of 8 Oct 2026, 21:49 UTC
Malicious package
Published to PyPI · OSV MAL-2026-17417
What to do
Remove beautifytext 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 |
|---|---|---|
| PyPIbeautifytext | 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 Python package beautifytext version 1.0.3 (and also 1.0.4 and 1.0.7) contains a malicious backdoor. Upon import or installation, it spawns a detached background process that registers the host with a remote command and control (C2) server and polls it for commands. This backdoor can execute arbitrary shell commands, read and write files on the infected host, and exfiltrate results to the attacker-controlled server. The malicious behavior activates both on import and during package installation, making it stealthy and persistent.