Malicious Code Exfiltration in requtils Package - PyPI Vulnerability
Summary
MAL-2025-191857: Malicious code in requtils (PyPI). Affects requtils versions 1.0.0 – 1.0.2. 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 requtils package, available on PyPI, is designed to provide utility functions for handling requests in Python applications. It is commonly used for simplifying API interactions and managing request parameters. However, a recent vulnerability has been identified that allows malicious actors to exfiltrate sensitive information, such as API keys, from users' systems.
Vulnerability Detail
The vulnerability originates from a malicious code embedded in the requtils package, specifically in versions 1.0.0, 1.0.1, and 1.0.2. This code attempts to automatically exfiltrate API keys to an external server, posing a significant risk to users who rely on this package for their applications. The malicious intent is clear, as it targets sensitive credentials, potentially leading to unauthorized access and data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall requtils
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 remove the requtils package from their environment until a secure version is confirmed. This can be done using the command: pip uninstall requtils. Alternatively, consider using a different package that provides similar functionality without the associated risks.
Conclusion
The requtils package has been compromised with malicious code that exfiltrates API keys, posing a serious threat to users. Immediate action is required to update or remove the package to safeguard sensitive information. Utilizing tools like Vulert can enhance your ability to monitor for such vulnerabilities in the future.
See every vulnerability recorded for requtils →
FAQ
requtils is a Python package designed to simplify the handling of HTTP requests and parameters in applications.
The vulnerability allows malicious code to exfiltrate sensitive information, such as API keys, which can lead to unauthorized access to your services.
You should uninstall the vulnerable version and update to a patched version as soon as possible to protect your application.
Detailed information can be found on the GitHub repository for malicious packages or through security advisories related to PyPI.
Vulert provides real-time monitoring and alerts for open-source vulnerabilities using your Pipfile.lock, allowing you to stay informed about potential risks in your applications.