Malicious code in toolpip (PyPI)

toolpip Updated 02 Oct 2025

Summary

24/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-6888: Malicious code in toolpip (PyPI). Affected versions are not published. 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

Toolpip is a Python package manager that allows users to easily install, upgrade, and manage Python packages. It is commonly used in Python development to handle package dependencies and ensure the smooth functioning of Python applications. However, the toolpip package itself has been found to contain malicious code, posing a significant security risk to users who install it.

Vulnerability Detail

The toolpip package has been compromised by the EsqueleSquad group, who published nearly 6000 malicious PyPi and NPM packages. These packages execute spyware and information-stealing malware, potentially compromising sensitive data and compromising the security of affected systems. The specific vulnerability in toolpip allows the execution of arbitrary code, enabling attackers to gain unauthorized access, manipulate data, or perform other malicious actions on the affected system.

How To Fix

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

pip uninstall toolpip

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, you can consider using an alternative package manager like pipenv or poetry to manage your Python packages. These package managers have built-in security features and are less likely to be compromised by malicious actors. Here is an example of how to install and use pipenv as an alternative to toolpip:

  1. Install pipenv:

pip install pipenv

  1. Create a new virtual environment with pipenv:

pipenv --python 3.9

  1. Activate the virtual environment:

pipenv shell

  1. Install packages using pipenv:

pipenv install <package-name>

By following these steps, you can mitigate the risk associated with the toolpip vulnerability and ensure the security of your Python environment.

Conclusion

The toolpip package has been compromised by malicious code, posing a significant security risk to Python developers and users. It is crucial to remove the toolpip package from your Python environment and ensure the absence of any other malicious packages. Consider using alternative package managers like pipenv or poetry to mitigate the risk and maintain the security of your Python applications. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for toolpip →

Share this vulnerability

FAQ

Toolpip is a Python package manager used for installing, upgrading, and managing Python packages.

The toolpip vulnerability allows attackers to execute arbitrary code on your system, potentially compromising your data and system security.

You can use Vulert (https://vulert.com) to scan your Pipfile.lock and check if your Python environment is affected by the toolpip vulnerability.

Yes, you can use alternative package managers like pipenv or poetry to manage your Python packages and mitigate the risk associated with the toolpip vulnerability.

If you have already installed the toolpip package, it is recommended to immediately remove it from your Python environment using the 'pip uninstall toolpip' command.

How To Fix

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

pip uninstall toolpip

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