Malicious Code Injection in hookgantry Package - Critical Vulnerability Alert
Summary
MAL-2026-18153: Malicious code in hookgantry (PyPI). Affects hookgantry versions 0.1.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 hookgantry package, available on PyPI, is designed for managing and executing hooks in Python applications. It is intended to facilitate the integration of various functionalities through a simple interface. However, recent findings have revealed that this package is part of a coordinated campaign that allows for the execution of malicious code from remote sources, posing a significant security risk to users.
Vulnerability Detail
The vulnerability stems from a malicious campaign identified as '2026-10-voice-synthesis-profiles', which involves loader packages that execute code from specified URLs. The hookgantry package has been implicated in this campaign, enabling the download and execution of remote scripts that could lead to data theft or system compromise. The malicious payload is not contained within the package itself, but the mechanism for executing harmful code is present, making it a serious threat to users who may unknowingly install it.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall hookgantry
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 using the hookgantry package until a secure version is released. Additionally, implementing network security measures such as firewalls and monitoring tools can help mitigate the risk of executing remote scripts.
Conclusion
The hookgantry package has been identified as part of a malicious campaign that poses a serious security risk due to its ability to execute remote scripts. Users are advised to uninstall the package and remain vigilant for updates. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in real-time.
See every vulnerability recorded for hookgantry →
FAQ
The hookgantry package is a Python library designed to manage and execute hooks in applications, allowing for easy integration of various functionalities.
This vulnerability allows for the execution of malicious code from remote sources, which could compromise your application's security and lead to data theft.
If you have installed hookgantry, you should uninstall it immediately and monitor for any updates or patches that may address the vulnerability.
Yes, you can use Vulert to monitor and alert for open-source vulnerabilities in your software. You can check your application against this vulnerability using the Vulert playground without any signup.
The potential consequences include unauthorized access to sensitive data, system compromise, and the execution of harmful scripts that could disrupt your application.