toneharbor (PyPI) · Malicious Code
Affects toneharborSource GCVE Database
Malicious package : remove toneharbor and rotate any secrets on hosts that installed it.
Data as of 27 Nov 2026, 20:48 UTC
Malicious package
Published to PyPI · OSV MAL-2026-20730
What to do
Remove toneharbor 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 |
|---|---|---|
| PyPItoneharbor | 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 toneharbor PyPI package versions 0.2.1 and 0.2.2 are part of a coordinated malicious campaign that involves loader packages designed to execute code from remote URLs. These packages do not contain the malicious payload themselves but serve as deceptive loaders to download and run remote malicious scripts. The campaign is identified as having clear malicious intent, including activities such as infostealing.