Malicious Code Exfiltration in hash-utils-py Package

hash-utils-py Updated 23 Mar 2026

Summary

23/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-2118: Malicious code in hash-utils-py (PyPI). Affects hash-utils-py versions 1.0.0 – 1.0.5. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

hash-utils-py is a Python package available on PyPI designed for various hashing utilities. It is intended to provide developers with easy-to-use functions for hashing data securely. However, a recent vulnerability has been discovered that allows malicious code to exfiltrate sensitive information from users' systems during the import of the module.

Vulnerability Detail

The vulnerability originates from a malicious actor who has embedded code within the hash-utils-py package. Upon importing the module, this code attempts to exfiltrate sensitive Telegram client session files from the user's system. This poses a significant risk as it can lead to unauthorized access to user accounts and sensitive data, making it a serious security concern for anyone using this package.

How To Fix

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

pip uninstall hash-utils-py

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 are advised to avoid importing the hash-utils-py package until the vulnerability has been resolved. If you must use it, consider isolating your environment to prevent potential data exfiltration.

Conclusion

The hash-utils-py package has been found to contain malicious code that can exfiltrate sensitive information from users' systems. It is essential for users to update their packages to the latest version to protect against this vulnerability. Additionally, using tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for hash-utils-py →

Share this vulnerability

FAQ

hash-utils-py is a Python package that provides hashing utilities for developers, allowing for secure data hashing.

The vulnerability allows malicious code to exfiltrate sensitive files from users' systems, potentially leading to unauthorized access to accounts.

If you have installed hash-utils-py, it is crucial to update to the latest version immediately to mitigate the risk.

Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. You can check your application against known vulnerabilities using Vulert's playground without any signup.

You can find detailed information about this vulnerability in the official GitHub repository or by visiting the Vulert website.

How To Fix

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

pip uninstall hash-utils-py

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