graphex (PyPI) · Malicious Code
Affects graphexSource GCVE Database
Malicious package : remove graphex and rotate any secrets on hosts that installed it.
Data as of 27 Nov 2026, 02:04 UTC
Malicious package
Published to PyPI · OSV MAL-2025-6517
What to do
Remove graphex from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIgraphexpkg:pypi/graphexOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The PyPI package 'graphex' versions 3.5.7 through 3.5.10 is part of a malicious campaign named 'graphalgo'. This package clones a legitimate package and downloads and executes a remote malicious script, indicating clear malicious intent such as infostealing.