twrap-tool (PyPI) · Malicious Code
Affects twrap-toolSource GCVE Database
Malicious package : remove twrap-tool and rotate any secrets on hosts that installed it.
Data as of 2 Jul 2026, 23:35 UTC
Malicious package
Published to PyPI · OSV MAL-2026-6711
What to do
Remove twrap-tool 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 |
|---|---|---|
| PyPItwrap-tool | 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 twrap-tool PyPI package version 1.0.0 contains malicious code that fetches and executes arbitrary Python code from a remote repository without verification. The package masquerades as a text-wrapping utility but actually runs attacker-controlled code with the privileges of the caller. This behavior allows remote code execution and potential data exfiltration. The malicious payload is fetched from a mutable tag reference, enabling the attacker to change the executed code at any time after the package is installed. No official patch or fix is currently documented.