Malicious code in crypttocompare (pypi)

crypttocompare Updated 02 Oct 2025

Summary

09/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-1744: Malicious code in crypttocompare (PyPI). Affected versions are not published. 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

crypttocompare is a package available on PyPI that provides functionality for comparing cryptocurrency prices. It is commonly used by developers to retrieve real-time data on various cryptocurrencies. However, this package has been found to contain malicious code that can infect local browsers and manipulate clipboard contents, potentially leading to the replacement of crypto wallet addresses.

Vulnerability Detail

The vulnerability in crypttocompare arises from the distribution of over 900 malicious packages via PyPI. These packages were created by an attacker and were designed to infect local browsers with a malicious extension. Once installed, the extension can manipulate the clipboard and replace crypto wallet addresses, leading to potential financial losses for users. The attacker's goal is to redirect cryptocurrency transactions to their own wallets, allowing them to steal funds from unsuspecting users.

How To Fix

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

pip uninstall crypttocompare

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

There is no direct workaround for this vulnerability. The best course of action is to follow the recommended steps mentioned in the 'how_to_fix' section.

Conclusion

The presence of malicious code in the crypttocompare package poses a significant risk to applications that utilize it. To protect your application and users, it is essential to remove the package and replace it with a trusted alternative. Regularly updating dependencies and following best practices for dependency management will help mitigate the risk of installing malicious packages. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for crypttocompare →

Share this vulnerability

FAQ

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock file, and Vulert will analyze it to identify any open-source vulnerabilities, including this one.

It is highly recommended to avoid using crypttocompare altogether, even with precautions. The presence of malicious code in the package makes it inherently risky, and it is better to switch to a trusted alternative.

While specific instances of exploitation may not be publicly documented, the distribution of over 900 malicious packages indicates that there is a significant risk of this vulnerability being actively exploited.

The potential ramifications of this vulnerability include financial losses for users who unknowingly use the malicious packages. By manipulating the clipboard and replacing crypto wallet addresses, the attacker can redirect cryptocurrency transactions to their own wallets, effectively stealing funds from unsuspecting users.

To protect your application from similar vulnerabilities, it is crucial to follow best practices for dependency management. Regularly update your dependencies to ensure you are using the latest, secure versions. Additionally, only use packages from reputable sources and consider implementing automated vulnerability scanning tools like Vulert to detect and mitigate potential risks.

How To Fix

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

pip uninstall crypttocompare

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