Malicious Code Injection in python-module-installer: A Threat to Python Package Security

python-module-installer Updated 06 Mar 2026

Summary

06/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1263: Malicious code in python-module-installer (PyPI). Affects python-module-installer versions 3.15.10 – 3.15.9. 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

The python-module-installer is a package available on PyPI that is intended to facilitate the installation of Python modules. However, this package has been compromised, cloning a legitimate library (webdavclient3) and modifying it to serve as a malicious installer. The malicious version exfiltrates sensitive information from the user's environment, posing a significant risk to users and their data.

Vulnerability Detail

The vulnerability originates from the malicious code embedded within the python-module-installer package. During installation, it exfiltrates the current working directory to a remote WebDAV server or a Telegram Bot. Additionally, it targets cryptocurrency operations, injecting code into specific files to exfiltrate configuration files during cryptocurrency exchange operations. This poses severe risks, including data theft and unauthorized access to sensitive information.

How To Fix

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

pip uninstall python-module-installer

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-module-installer package altogether and manually install the required modules from trusted sources. Ensure to check the integrity of any packages before installation.

Conclusion

The python-module-installer package has been identified as malicious, posing significant risks to users through data exfiltration and unauthorized access. It is crucial for users to uninstall this package and replace it with legitimate alternatives to safeguard their systems.

See every vulnerability recorded for python-module-installer →

Share this vulnerability

FAQ

The python-module-installer is a package designed to help users install Python modules easily. However, the version in question has been compromised.

The vulnerability allows malicious code to exfiltrate sensitive information from your system, potentially leading to data theft and unauthorized access.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.

If you have installed the python-module-installer, you should uninstall it immediately and replace it with a legitimate package.

For more information on vulnerabilities and how to protect your applications, you can visit Vulert's website at https://vulert.com.

How To Fix

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

pip uninstall python-module-installer

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