tns-py (PyPI) · Malicious Code
Affects tns-pySource GCVE Database
Malicious package : remove tns-py and rotate any secrets on hosts that installed it.
Data as of 27 Oct 2026, 00:48 UTC
Malicious package
Published to PyPI · OSV MAL-2026-3219
What to do
Remove tns-py 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 |
|---|---|---|
| PyPItns-py | 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 tns-py package on PyPI version 1.0.0 contains malicious code designed to exfiltrate environment variables. This behavior is part of a campaign targeting cryptocurrency users by embedding malicious code in dependencies. The package is intentionally crafted to steal sensitive information, posing a threat to users who install or use it.