cleanup-string (PyPI) · Malicious Code
Affects cleanup-stringSource GCVE Database
Malicious package : remove cleanup-string and rotate any secrets on hosts that installed it.
Data as of 30 Sep 2026, 16:39 UTC
Malicious package
Published to PyPI · OSV MAL-2026-17325
What to do
Remove cleanup-string 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 |
|---|---|---|
| PyPIcleanup-string | 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 PyPI package 'cleanup-string' version 1.0.0 includes a suspicious Windows-only native extension protected by VMProtect, a tool used to obfuscate and virtualize code to prevent analysis. Although the package claims to be a pure-Python string helper, it loads a large opaque binary module with no clear legitimate purpose. This module executes with the privileges of the importing process in any Windows Python 3.13 environment, potentially enabling malicious activity.