Malicious Code Injection in python-requirements Package

python-requirements Updated 06 Mar 2026

Summary

06/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1264: Malicious code in python-requirements (PyPI). Affects python-requirements versions 3.15.5 – 3.15.6. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The python-requirements package, available on PyPI, is intended for managing Python package dependencies. However, it has been compromised by a malicious actor who cloned the legitimate webdavclient3 library and modified it to serve as an installer utility. This altered package is designed to exfiltrate sensitive information and target cryptocurrency operations, posing significant risks to users.

Vulnerability Detail

The vulnerability originates from a malicious modification of the python-requirements package, which clones a legitimate library and injects harmful code. During installation, this code exfiltrates the current working directory to a remote WebDAV server or Telegram Bot. Additionally, it targets cryptocurrency operations, leading to potential data breaches and unauthorized access to sensitive configuration files during cryptocurrency exchanges.

How To Fix

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

pip uninstall python-requirements

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 python-requirements package altogether and manually manage their Python dependencies. This can be done by creating a requirements.txt file and installing packages individually using 'pip install -r requirements.txt'.

Conclusion

The python-requirements package has been compromised, leading to significant security risks due to malicious code injection. Users are advised to uninstall the affected versions and monitor their applications for vulnerabilities using tools like Vulert. Staying informed and proactive is essential to maintaining software security.

See every vulnerability recorded for python-requirements →

Share this vulnerability

FAQ

The python-requirements package is a tool for managing Python package dependencies, allowing developers to specify and install required libraries for their projects.

The malicious code can exfiltrate sensitive information from your working directory and potentially compromise your cryptocurrency operations, leading to data breaches.

Uninstall the affected versions of the python-requirements package immediately and consider using a secure alternative for managing dependencies.

You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. Check your application against known vulnerabilities using the Vulert playground without any signup.

Detailed information about this vulnerability can be found on the GitHub repository of malicious packages or through security advisories related to the python-requirements package.

How To Fix

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

pip uninstall python-requirements

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