Malicious Code Detected in sparseml-nightly Package - Vulnerability MAL-2025-6590
Summary
MAL-2025-6590: Malicious code in sparseml-nightly (PyPI). Affects sparseml-nightly 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
The sparseml-nightly package is a Python library designed for machine learning and model optimization. It provides tools for enhancing model performance and efficiency. However, this package has been identified with a critical vulnerability that allows for the execution of malicious code, posing a significant risk to users and their systems.
Vulnerability Detail
The vulnerability identified as MAL-2025-6590 originates from a malicious version of the sparseml-nightly package available on PyPI. This version contains harmful code that can execute unauthorized actions on the user's system, potentially leading to data breaches or system compromise. The affected version is 0.0.1, and it is crucial for users to be aware of the risks associated with using this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall sparseml-nightly
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 sparseml-nightly package until a secure version is released. Alternatively, consider using other similar packages that do not have known vulnerabilities.
Conclusion
The sparseml-nightly package has been compromised with malicious code, posing serious risks to users. It is essential to take immediate action by uninstalling the affected version and monitoring for updates. Utilizing tools like Vulert can help maintain the security of your software dependencies.
See every vulnerability recorded for sparseml-nightly →
FAQ
The malicious code can execute unauthorized actions on the user's system, leading to potential data breaches or system compromise.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities. Visit Vulert Scanner to check your application without any signup.
Immediately uninstall the vulnerable version using 'pip uninstall sparseml-nightly' and update to a secure version if available.
Currently, the identified vulnerability is specific to the sparseml-nightly package version 0.0.1. Always check for updates and security advisories for other packages.
Utilize tools like Vulert to monitor your dependencies for vulnerabilities in real-time, ensuring you are alerted to any issues as they arise.