metrio (PyPI) · Malicious Code
Affects metrioSource GCVE Database
Malicious package : remove metrio and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:22 UTC
Malicious package
Published to PyPI · OSV MAL-2026-17193
What to do
Remove metrio 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 |
|---|---|---|
| PyPImetrio | 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 metrio package on PyPI, specifically versions 999.0.0, 1000.0.0, and 1001.0.0, contains malicious code that exfiltrates the local machine's hostname during installation and import. This exfiltration occurs by encoding the hostname and sending DNS and HTTP requests to an attacker-controlled domain. The package is designed as a dependency confusion proof-of-concept, aiming to be resolved instead of an internal package with the same name, thereby leaking information about the resolving host.