Malicious Code Vulnerability in mainx Package on PyPI

mainx Updated 02 Oct 2025

Summary

31/07/2025
CRITICAL
No i
Critical
Not published

MAL-2025-6540: Malicious code in mainx (PyPI). Affects mainx versions 0.1 – 1. 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 mainx package is a Python library available on the Python Package Index (PyPI) that serves various functionalities for developers. It is designed to simplify certain tasks within Python applications. However, recent findings have revealed that versions 0.1 through 1 of this package contain malicious code, posing significant security risks to users who have integrated it into their projects.

Vulnerability Detail

The vulnerability in the mainx package arises from the inclusion of malicious code that can compromise the security of applications utilizing this library. This issue was identified by ReversingLabs and affects multiple versions of the package. The malicious code can lead to unauthorized access, data breaches, or other harmful actions within the affected systems. Users are strongly advised to review their usage of this package and take immediate action to mitigate potential risks.

How To Fix

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

pip uninstall mainx

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 remove the mainx package from their projects until a secure version is confirmed. This can be done with the command: 'pip uninstall mainx'. Additionally, consider using alternative packages that provide similar functionality without the associated risks.

Conclusion

The mainx package on PyPI has been identified to contain malicious code, affecting multiple versions. Users are urged to update or uninstall the package to safeguard their applications. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for mainx →

Share this vulnerability

FAQ

The mainx package contains malicious code that can compromise the security of applications using it.

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

Versions 0.1 through 1 of the mainx package are affected by this vulnerability.

You can update the mainx package by running the command 'pip install --upgrade mainx' in your terminal.

If you cannot update the package right away, it is recommended to uninstall it using 'pip uninstall mainx' and look for alternative packages.

How To Fix

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

pip uninstall mainx

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