Malicious Code Execution in requests-auth-toolkit Package

requests-auth-toolkit Updated 11 Feb 2026

Summary

10/02/2026
CRITICAL
No i
Critical
Not published

MAL-2026-847: Malicious code in requests-auth-toolkit (PyPI). Affects requests-auth-toolkit versions 2.1.0. 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-auth-toolkit is a Python package available on PyPI, designed to facilitate authentication processes in web applications. It provides developers with tools to manage authentication tokens and sessions efficiently. However, this package has been compromised, introducing a severe vulnerability that allows malicious actors to execute arbitrary commands on the victim's machine.

Vulnerability Detail

The vulnerability originates from a malicious script embedded within the requests-auth-toolkit package. During installation, this script listens for remote commands and executes them, posing a significant security risk. The malicious code also modifies the system's autostart configuration, ensuring persistence across reboots. Additionally, it generates new SSH keys, allowing continued access to the compromised system. The package overrides the install command in setup.py, executing harmful code during the installation process. This vulnerability can lead to unauthorized access, data theft, and further exploitation of the affected systems.

How To Fix

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

pip uninstall requests-auth-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, avoid using the requests-auth-toolkit package until a secure version is released. If you must use it, consider isolating your environment using virtual environments or containers to minimize the risk of exposure.

Conclusion

The requests-auth-toolkit package has been compromised, introducing a serious vulnerability that allows for remote command execution. It is essential to uninstall the affected package and monitor your systems for any signs of compromise. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities in the future.

See every vulnerability recorded for requests-auth-toolkit →

Share this vulnerability

FAQ

It is a Python package designed to assist developers with authentication processes in web applications.

The vulnerability allows attackers to execute arbitrary commands on your machine, potentially leading to data theft and unauthorized access.

Uninstall the package immediately and check your system for any malicious scripts or configurations.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using your Pipfile.lock.

Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.

How To Fix

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

pip uninstall requests-auth-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