Malicious code in toolhttp (PyPI)

toolhttp Updated 02 Oct 2025

Summary

24/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-6878: Malicious code in toolhttp (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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The toolhttp package is an open-source Python package available on PyPI. It is designed to provide a set of tools and utilities for HTTP-related tasks. This package is widely used by developers to handle HTTP requests, responses, and other related functionalities in their Python applications. Unfortunately, this package has been found to contain malicious code, as reported by Checkmarx. This code can execute spyware and information-stealing malware, posing a significant security risk to any application that depends on this package.

Vulnerability Detail

The malicious code in the toolhttp package originates from a group called EsqueleSquad. They have published nearly 6000 malicious PyPi and NPM packages, including the compromised version of toolhttp. This code can perform various malicious activities, such as spying on user data and stealing sensitive information. The specific technical details of the vulnerability are not provided in the report, but it is crucial to understand that any application using the affected versions of toolhttp is at risk of being compromised.

How To Fix

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

pip uninstall toolhttp

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

There is no specific workaround mentioned in the report. However, as a general best practice, it is advisable to regularly update your application's dependencies and use trusted sources for package installations. This can help minimize the risk of using compromised packages like toolhttp.

Conclusion

The presence of malicious code in the toolhttp package poses a significant security risk to any application that depends on it. It is crucial to take immediate action by removing the affected version from your application's dependencies and scanning for any signs of compromise. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for toolhttp →

Share this vulnerability

FAQ

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock file, and Vulert will analyze it in real-time to identify any open-source vulnerabilities, including this one.

Using the compromised version of toolhttp can lead to unauthorized access to sensitive information, data breaches, and potential compromise of user privacy. The malicious code can perform various malicious activities, such as stealing login credentials, capturing user input, or even installing additional malware on the affected system.

The report does not mention an official fix or an updated secure version of toolhttp. However, it is recommended to remove the affected version from your application and find a secure alternative package or an updated version that is not compromised.

If your application is affected by this vulnerability, it is crucial to take immediate action. Remove the compromised version of toolhttp from your dependencies, scan your application for any signs of compromise, and consider reaching out to security experts for further assistance in mitigating the potential damage caused by the malicious code.

To prevent similar vulnerabilities in the future, it is essential to follow best practices for secure software development. Regularly update your application's dependencies, use trusted sources for package installations, and consider implementing automated vulnerability scanning tools like Vulert to detect and mitigate potential risks in real-time.

How To Fix

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

pip uninstall toolhttp

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