Critical Malicious Code Vulnerability in morty-package: Potential Threat to PyPI Users
Summary
MAL-2026-595: Malicious code in morty-package (PyPI). Affects morty-package versions 0.0.0a1. 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 morty-package is a Python package available on the Python Package Index (PyPI) designed for various functionalities. However, it has been identified to contain malicious code that employs deep obfuscation techniques, making it difficult to analyze and understand its behavior. This vulnerability poses significant risks to users who install the package, as it may execute harmful actions without their knowledge.
Vulnerability Detail
The vulnerability originates from the package's use of extreme code obfuscation, which hides its true functionality and intent. During installation, it loads encrypted code that can disrupt debugging efforts, making it challenging for developers to identify malicious behavior. The campaign associated with this vulnerability indicates clear malicious intent, potentially leading to data theft or other harmful outcomes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall morty-package
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 workaround, users should refrain from installing the morty-package and consider using alternative packages that provide similar functionalities without the associated risks.
Conclusion
The morty-package poses a significant security threat due to its malicious code and obfuscation techniques. Users are advised to uninstall the package and seek safer alternatives. Continuous monitoring for vulnerabilities is essential to maintain the security of your software.
See every vulnerability recorded for morty-package →
FAQ
The morty-package is a Python package available on PyPI, but it has been identified to contain malicious code that poses security risks.
The vulnerability can lead to the execution of malicious actions, including data theft and disruption of normal operations.
You should uninstall the morty-package immediately to prevent any potential harm to your system.
Yes, consider using other well-reviewed packages that provide similar functionalities without the associated risks.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.