Critical Malicious Code Vulnerability in coinscan Package

coinscan Updated 27 Sep 2026

Summary

27/09/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17197: Malicious code in coinscan (PyPI). Affects coinscan versions 0.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 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 coinscan package, available on PyPI, is designed for cryptocurrency-related functionalities. However, it has been compromised with malicious code that executes arbitrary commands on the user's machine. This vulnerability poses a significant risk to developers and users who install the package, as it can lead to data theft and unauthorized access to sensitive information.

Vulnerability Detail

The vulnerability originates from the installation process of the coinscan package, which imports and executes malicious code from an external source. Specifically, during installation, the setup.py file calls a function that fetches a JSON manifest from a suspicious domain. If the fetch fails, it falls back to an embedded payload that executes arbitrary code. The malicious code is designed to evade detection by checking for specific environment variables, ensuring it only runs on developer workstations and not in CI or sandbox environments. This behavior exemplifies a classic dropper pattern, making it a severe security threat.

How To Fix

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

pip uninstall coinscan

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 measure, avoid using the coinscan package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.

Conclusion

The coinscan package contains a critical vulnerability that allows for the execution of malicious code, posing significant risks to users. Immediate action is required to uninstall the package and monitor for updates. Utilizing tools like Vulert can help ensure your applications remain secure against such vulnerabilities.

See every vulnerability recorded for coinscan →

Share this vulnerability

FAQ

The coinscan package is a Python library used for cryptocurrency-related functionalities, but it has been compromised with malicious code.

The vulnerability manifests during the installation process, where malicious code is executed from an external source or an embedded payload.

The risks include unauthorized access to sensitive data, potential data theft, and the execution of arbitrary commands on the user's machine.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without requiring a signup.

If you have installed the coinscan package, uninstall it immediately and check for any updates or patches from the official repository.

How To Fix

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

pip uninstall coinscan

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