request-cache-py (PyPI) · Malicious Code
Affects request-cache-pySource GCVE Database
Malicious package : remove request-cache-py and rotate any secrets on hosts that installed it.
Data as of 9 Jul 2026, 10:03 UTC
Malicious package
Published to PyPI · OSV MAL-2026-6245
What to do
Remove request-cache-py 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 |
|---|---|---|
| PyPIrequest-cache-py | 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 request-cache-py package on PyPI is a malicious library impersonating the legitimate requests-cache library. Upon import, it starts a background thread that harvests sensitive installer-side secrets including SSH private keys, AWS credentials, Git credentials, npm and Docker config files, and browser data such as saved logins, cookies, and history. It also collects environment variables containing sensitive keywords and exfiltrates all this data to a hardcoded Telegram bot. The package includes sandbox evasion techniques to avoid detection in CI environments and prevents repeated data exfiltration within 24 hours. This is a deliberate supply-chain credential stealer targeting developer workstations.
References
- bad-packages.kam193.eu/pypi/package/request-cache-py (opens in a new tab)
- pypi.org/project/request-cache-py/1.1.0/ (opens in a new tab)
- pypi.org/project/request-cache-py/1.0.0/ (opens in a new tab)
- pypi.org/project/request-cache-py/1.0.7/ (opens in a new tab)
- pypi.org/project/request-cache-py/1.0.8/ (opens in a new tab)
- pypi.org/project/request-cache-py/1.0.3/ (opens in a new tab)
- pypi.org/project/request-cache-py/1.0.4/ (opens in a new tab)
- pypi.org/project/request-cache-py/1.0.6/ (opens in a new tab)
- pypi.org/project/request-cache-py/1.0.1/ (opens in a new tab)
- pypi.org/project/request-cache-py/1.0.2/ (opens in a new tab)
- pypi.org/project/request-cache-py/1.0.5/ (opens in a new tab)
- pypi.org/project/request-cache-py/1.0.9/ (opens in a new tab)