Malicious Code Vulnerability in common-test Package on PyPI

common-test Updated 02 Oct 2025

Summary

31/07/2025
CRITICAL
No i
Critical
Not published

MAL-2025-6481: Malicious code in common-test (PyPI). Affects common-test versions 0.0.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 common-test package is a Python library available on the Python Package Index (PyPI) that is designed for testing purposes. It provides functionalities that assist developers in writing and executing tests for their applications. However, this package has been identified as containing malicious code, which poses significant risks to users who integrate it into their projects.

Vulnerability Detail

The vulnerability stems from the inclusion of malicious code in version 0.0.1 of the common-test package. This code can potentially compromise the security of applications that utilize this package, leading to unauthorized access, data breaches, or other malicious activities. The origin of this vulnerability is linked to the package's distribution on PyPI, where it was uploaded with the intent to deceive users. The technical aspects include the package's ability to execute harmful operations when imported into a Python environment.

How To Fix

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

pip uninstall common-test

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, you can avoid using the common-test package altogether and look for alternative testing libraries that are well-maintained and have a good reputation in the community. Some popular alternatives include pytest and unittest.

Conclusion

The common-test package has been identified as containing malicious code, posing serious security risks to users. It is crucial to uninstall the affected version and consider alternative testing libraries. Utilizing tools like Vulert can help monitor and manage vulnerabilities in your software effectively.

See every vulnerability recorded for common-test →

Share this vulnerability

FAQ

The common-test package is a Python library designed for testing applications, providing tools and functionalities to assist developers in writing and executing tests.

You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in your software. By checking your Pipfile.lock, Vulert can identify if your application is affected by this vulnerability.

If you have installed the common-test package, you should uninstall it immediately using the command pip uninstall common-test to mitigate any potential risks.

Yes, there are several alternatives to the common-test package, including pytest and unittest, which are widely used and have strong community support.

You can use tools like Vulert to monitor your dependencies for vulnerabilities in real-time. The Vulert playground allows you to check if your application is affected without requiring any signup.

How To Fix

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

pip uninstall common-test

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