fast-dotenv (PyPI) · Malicious Code
Affects fast-dotenvSource GCVE Database
Malicious package : remove fast-dotenv and rotate any secrets on hosts that installed it.
Data as of 13 Jul 2026, 09:52 UTC
Malicious package
Published to PyPI · OSV MAL-2026-10215
What to do
Remove fast-dotenv 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 |
|---|---|---|
| PyPIfast-dotenv | 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 fast-dotenv package version 1.0.0 on PyPI contains malicious code that activates after a 72–96 hour delay. Once activated, it retrieves a remote command-and-control (C2) configuration from obfuscated URLs and exfiltrates system information, including environment variables with sensitive keywords and SSH key files. The malicious code hides its network destinations using base64 encoding and cover comments, indicating a staged supply-chain credential stealer. The embedded C2 URLs did not exist at the time of analysis but are linked to related malicious repositories. No official patch or remediation is currently available.
References
- gist.github.com/opensource-crypto/3946ef88aa057c9d10f1a7d80391d164/ (opens in a new tab)
- github.com/opensource-crypto (opens in a new tab)
- gist.github.com/opensource-crypto (opens in a new tab)
- github.com/opensource-crypto/env-fast/blob/6c83117d0175fa3d16c3bca6bdb6dbf3528ee061/index.js (opens in a new tab)
- bad-packages.kam193.eu/pypi/package/fast-dotenv (opens in a new tab)
- pypi.org/project/fast-dotenv/1.0.0/ (opens in a new tab)