Malicious Code Detected in sparseml-nightly Package - Vulnerability MAL-2025-6590

sparseml-nightly Updated 02 Oct 2025

Summary

31/07/2025
CRITICAL
No i
Critical
Not published

MAL-2025-6590: Malicious code in sparseml-nightly (PyPI). Affects sparseml-nightly versions 0.0.1. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback