Malicious Code Vulnerability in tronpyapi Package
Summary
MAL-2025-6610: Malicious code in tronpyapi (PyPI). Affects tronpyapi versions 0.0.1. 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
tronpyapi is a Python package designed for interacting with the TRON blockchain, providing developers with tools to build decentralized applications. It offers functionalities such as transaction handling and smart contract interaction. However, the package has been identified to contain malicious code, posing a significant risk to users who integrate it into their projects.
Vulnerability Detail
The vulnerability stems from the inclusion of malicious code in version 0.0.1 of the tronpyapi package. This code can potentially compromise the security of applications that utilize the package, leading to unauthorized access, data breaches, or other malicious activities. The origin of this vulnerability is linked to the package being flagged by ReversingLabs, a security research firm, which has documented the issue in their database.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall tronpyapi
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 measure, users can avoid using the tronpyapi package altogether and seek alternative libraries that provide similar functionality without the associated risks. Additionally, consider implementing security measures such as code reviews and dependency scanning to identify and mitigate potential vulnerabilities in your projects.
Conclusion
The tronpyapi package has been identified to contain malicious code, posing a significant risk to users. It is essential to remove the affected version and monitor for updates. Utilizing tools like Vulert can help in identifying vulnerabilities in your applications.
See every vulnerability recorded for tronpyapi →
FAQ
tronpyapi is a Python library that allows developers to interact with the TRON blockchain, facilitating the development of decentralized applications.
The malicious code can compromise application security, potentially leading to unauthorized access and data breaches.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
Currently, there is no patched version of tronpyapi available. Users should refrain from using the package until a secure version is released.
Remove the tronpyapi package from your project and consider using alternative libraries that provide similar functionalities without the associated risks.