Malicious Code Vulnerability in ds-lime Package

ds-lime Updated 02 Oct 2025

Summary

31/07/2025
CRITICAL
No i
Critical
Not published

MAL-2025-6497: Malicious code in ds-lime (PyPI). Affects ds-lime 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The ds-lime package is a Python library designed for model interpretation and explainability in machine learning. It provides tools to help users understand the predictions made by their models. However, the package has been identified to contain malicious code, which poses a significant risk to users who integrate it into their applications.

Vulnerability Detail

The vulnerability originates from a malicious version of the ds-lime package (version 0.0.1) identified by ReversingLabs. This version contains harmful code that can compromise the security of systems using it, potentially leading to unauthorized access or data breaches. Users who have installed this version are at risk of exploitation by attackers leveraging the malicious functionalities embedded within the package.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall ds-lime

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 ds-lime package until a patched version is released. Additionally, consider using alternative libraries for model interpretation that do not have known vulnerabilities.

Conclusion

The ds-lime package has been found to contain malicious code, posing a serious risk to users. It is crucial to uninstall the affected version and monitor for updates. Utilizing tools like Vulert can help keep your software secure from similar vulnerabilities in the future.

See every vulnerability recorded for ds-lime →

Share this vulnerability

FAQ

The ds-lime package is used for interpreting machine learning models, helping users understand how their models make predictions.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

You should uninstall the malicious version immediately and check for a safe version to install.

Yes, using the malicious package can lead to unauthorized access to your system and potential data breaches.

Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall ds-lime

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