Malicious Code Injection in connections-api-request Package
Summary
MAL-2026-640: Malicious code in connections-api-request (PyPI). Affects connections-api-request versions 0.2.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
The connections-api-request package is a Python library available on PyPI, designed to facilitate API requests and connections. It is commonly used in various applications for seamless integration with external services. However, this package has been identified as containing malicious code that compromises user security and system integrity.
Vulnerability Detail
The vulnerability originates from a malicious actor identified as 'kam193', who has embedded code within the connections-api-request package that downloads and executes a remote executable identified as malware. This poses significant risks, including unauthorized access to sensitive information and potential system compromise. The malicious code is triggered upon importing the module, making it particularly dangerous for unsuspecting users.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall connections-api-request
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, avoid using the connections-api-request package until it has been confirmed safe. If you must use it, consider isolating it within a virtual environment and monitor network activity for any suspicious behavior.
Conclusion
The connections-api-request package has been compromised with malicious code that poses serious security risks. Users are advised to update or remove the package immediately and monitor their systems for any suspicious activity. Utilizing tools like Vulert can help in identifying vulnerabilities in your applications.
See every vulnerability recorded for connections-api-request →
FAQ
It is a Python library used for making API requests and managing connections to external services.
The malicious code can download and execute harmful software, potentially leading to data breaches and system compromise.
Immediately uninstall the connections-api-request package and monitor your system for any unusual activity.
Yes, you can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
For more details, you can reach out to Kamil Mańkowski, the analyst who reported this vulnerability, through his GitHub profile at https://github.com/kam193.