Critical Malicious Code Vulnerability in requests-toolkit Package

requests-toolkit Updated 15 Feb 2026

Summary

15/02/2026
CRITICAL
No i
Critical
Not published

MAL-2026-903: Malicious code in requests-toolkit (PyPI). Affects requests-toolkit versions 0.1.2 – 0.1.3. 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 requests-toolkit package is a Python library available on PyPI that is designed to facilitate HTTP requests and enhance the functionality of the requests library. It is commonly used in various applications for making web requests more manageable. However, this package has been compromised, leading to significant security concerns due to the presence of malicious code.

Vulnerability Detail

The vulnerability originates from a malicious actor who has embedded harmful code within the requests-toolkit package. Upon import, the package masquerades as a legitimate library and executes an embedded executable that exhibits infostealer behavior. This executable is capable of stealing sensitive information, including keystrokes, and has mechanisms to detect if it is running in a sandbox environment, making it particularly dangerous for users.

How To Fix

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

pip uninstall requests-toolkit

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 should avoid using the requests-toolkit package until a patched version is released. Additionally, consider using alternative libraries for making HTTP requests, such as the standard requests library or other well-maintained packages.

Conclusion

The requests-toolkit package has been compromised with malicious code that poses a significant threat to users. It is crucial to uninstall the affected versions and seek alternatives to safeguard sensitive information. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.

See every vulnerability recorded for requests-toolkit →

Share this vulnerability

FAQ

The affected versions are 0.1.2 and 0.1.3.

You should uninstall the requests-toolkit package immediately and replace it with a safe alternative.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

Signs of infostealer activity may include unexpected behavior in applications, unauthorized access to sensitive information, or detection of keylogging activities.

Currently, there is no patched version available for the requests-toolkit package. Users are advised to uninstall it and use alternative libraries.

How To Fix

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

pip uninstall requests-toolkit

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