cosmos-gradio (PyPI) · Malicious Code
Affects cosmos-gradioSource GCVE Database
Malicious package : remove cosmos-gradio and rotate any secrets on hosts that installed it.
Data as of 15 Jul 2026, 12:56 UTC
Malicious package
Published to PyPI · OSV MAL-2026-10618
What to do
Remove cosmos-gradio 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 |
|---|---|---|
| PyPIcosmos-gradio | 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 cosmos-gradio package on PyPI, versions 9999.0.0 and 9999.0.1, is a malicious dependency-confusion squat designed to exfiltrate system information. During installation and import, it collects the installer's hostname, OS username, and current working directory, sending this data to a hardcoded external domain via DNS and HTTP channels. The package uses an inflated version number to win version resolution over legitimate internal packages and forces execution of malicious setup.py code by being sdist-only. It has no legitimate functionality beyond data exfiltration.