Cryptomining Malware in aiihttp Package: A Critical Security Threat
Summary
MAL-2026-35: Malicious code in aiihttp (PyPI). Affects aiihttp versions 3.13.3. 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
The aiihttp package is a Python library available on PyPI, designed for asynchronous HTTP client/server functionality. It is widely used in various applications for efficient web communication. However, the package has been compromised, leading to a significant security vulnerability that allows malicious actors to execute harmful code on users' systems.
Vulnerability Detail
The vulnerability originates from a malicious version of the aiihttp package, specifically version 3.13.3, uploaded by a user identified as kam193. This version contains obfuscated code that downloads an encrypted binary blob, which is malware that initiates cryptomining activities. Once the malware is executed, it uninstalls the malicious package and installs a legitimate version of aiihttp, effectively covering its tracks. This poses severe risks, including unauthorized resource usage, potential data breaches, and system instability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall aiihttp
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 measure, users can avoid using the aiihttp package until they confirm they are using a safe version. Additionally, users should monitor their systems for any unusual activity that may indicate the presence of malware.
Conclusion
The aiihttp package has been compromised, leading to a serious vulnerability that allows for cryptomining malware to infect users' systems. It is crucial for users to uninstall the affected version and update to a safe version immediately. Monitoring tools like Vulert can help keep your applications secure from such threats.
See every vulnerability recorded for aiihttp →
FAQ
The aiihttp package is a Python library used for asynchronous HTTP client/server communication, facilitating efficient web interactions.
If you have installed version 3.13.3 of the aiihttp package, your system may be affected. Check your installed packages using pip list.
If you suspect infection, immediately uninstall the aiihttp package and run a full system scan with a reputable antivirus program.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application against known vulnerabilities using the Vulert playground.
Vulert is a service that monitors open-source vulnerabilities in your software using Pipfile.lock, providing real-time alerts without requiring code access or installation.