Malicious Code Vulnerability in py-wormgpt: Remote Code Execution and File Exfiltration Risk
Summary
MAL-2026-17886: Malicious code in py-wormgpt (PyPI). Affects py-wormgpt versions 1.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
py-wormgpt is a Python package available on the PyPI repository, designed for generating text using AI models. However, it has been found to contain malicious code that poses significant security risks to users. The package's functionality is compromised due to its ability to install persistent jobs on the victim's machine, allowing attackers to exfiltrate files and execute remote commands.
Vulnerability Detail
The vulnerability originates from a malicious package version 1.0.0 of py-wormgpt, reported by the user kam193. The package installs a persistent job that enables attackers to exfiltrate files and execute remote code on the victim's machine. This includes downloading and executing remote malicious scripts, which can lead to unauthorized access and control over the affected system. The malicious code is designed to run automatically, making it a serious threat to users who install this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall py-wormgpt
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 py-wormgpt package until a secure version is released. Additionally, users should monitor their systems for any unauthorized changes or suspicious activities that may have occurred due to the malicious code.
Conclusion
The py-wormgpt package has been identified as containing malicious code that poses serious security risks, including remote code execution and file exfiltration. Users are advised to uninstall the package immediately and monitor their systems for any unauthorized activities. Staying informed about updates and using tools like Vulert can help mitigate risks associated with open-source vulnerabilities.
See every vulnerability recorded for py-wormgpt →
FAQ
The vulnerability involves malicious code that allows for remote code execution and file exfiltration on the victim's machine.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If you have installed py-wormgpt, you should uninstall it immediately and monitor your system for any suspicious activity.
Currently, there is no patched version available. Users should uninstall the affected version and await further updates.
Vulert monitors and alerts in real-time for open-source vulnerabilities in software by analyzing the Pipfile.lock, ensuring users are informed of potential risks.