Malicious Code Exfiltration in Metrio Package
Summary
MAL-2026-17193: Malicious code in metrio (PyPI). Affects metrio versions 1000.0.0 – 999.0.0. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Metrio is a Python package available on PyPI, designed for various functionalities related to data handling and processing. However, it has been identified to contain malicious code that compromises user data. The package's primary purpose is overshadowed by its vulnerability, which allows it to exfiltrate sensitive information from the host system.
Vulnerability Detail
The vulnerability originates from a malicious code embedded within the Metrio package. Upon installation or import, the package executes code that exfiltrates basic information about the host, such as the IP address and username. This behavior is facilitated by overriding the install command in the setup.py file, which triggers the malicious code execution during the installation process. The risk associated with this vulnerability is categorized as limited, but it still poses a significant threat to user privacy and security.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall metrio
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, users can avoid installing the Metrio package altogether until a secure version is released. If the package is already installed, ensure to monitor your system for any unusual activity and consider using network monitoring tools to detect unauthorized data exfiltration.
Conclusion
The Metrio package has been identified as containing malicious code that exfiltrates sensitive information from users' systems. It is crucial for users to uninstall the affected versions and monitor their systems for any unusual activity. Stay informed about updates and patches for the package to ensure your system's security.
See every vulnerability recorded for metrio →
FAQ
Metrio is a Python package available on PyPI, designed for data handling and processing tasks.
The malicious code in the Metrio package exfiltrates basic information such as the host's IP address and username.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If you have installed the Metrio package, you should uninstall it immediately and monitor your system for any unusual activity.
Currently, there is no patched version available. Users are advised to uninstall the affected versions and await further updates.