Malicious Code Exfiltration in pymnemonic Package

pymnemonic Updated 16 Mar 2026

Summary

15/03/2026
CRITICAL
No i
Critical
Not published

MAL-2026-1438: Malicious code in pymnemonic (PyPI). Affects pymnemonic versions 1.1.2 – 1.2.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 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 pymnemonic package, available on PyPI, is designed as a crypto-related helper for Python developers. It aims to assist with mnemonic phrase generation and manipulation, which are commonly used in cryptocurrency applications. However, a malicious clone of this package has been identified, which disguises itself as a legitimate utility while harboring harmful code that exfiltrates sensitive environment variables.

Vulnerability Detail

The vulnerability originates from a malicious modification of the pymnemonic package by a user identified as kam193. This version of the package is a clone of the legitimate python-utils package, but it contains code that secretly sends sensitive environment variables to a hardcoded external location (quantumic.digital). The ramifications of this vulnerability include potential exposure of sensitive data, which could lead to unauthorized access to user accounts or systems that rely on these environment variables.

How To Fix

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

pip uninstall pymnemonic

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 pymnemonic package until you confirm that you are using a safe version. Additionally, consider using alternative libraries that provide similar functionality without the associated risks.

Conclusion

The pymnemonic package has been compromised by a malicious actor, leading to the exfiltration of sensitive environment variables. It is imperative for users to update to a safe version and remain vigilant about the packages they use in their projects. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in real-time.

See every vulnerability recorded for pymnemonic →

Share this vulnerability

FAQ

The pymnemonic package is used for generating and manipulating mnemonic phrases, which are often utilized in cryptocurrency applications for wallet recovery and security.

You can check your installed version of pymnemonic by running 'pip show pymnemonic' in your terminal. Versions 1.1.2, 1.1.3, and 1.2.5 are known to be malicious.

If you have used the affected version, it is crucial to update to a safe version immediately and review your environment variables for any potential exposure.

Yes, you can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the Pipfile.lock. You can check your application against known vulnerabilities without needing to install anything.

Detailed information about this vulnerability can be found in the Open Source Vulnerability database, and you can also visit the Vulert playground to check if your application is affected.

How To Fix

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

pip uninstall pymnemonic

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