Skip to main content
MalwarePublished Updated

request-cache-py (PyPI) · Malicious Code

Affects request-cache-pySource GCVE Database

0

Malicious package : remove request-cache-py and rotate any secrets on hosts that installed it.

Data as of 9 Jul 2026, 10:03 UTC

Classification

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

ProductAffectedFixed in
PyPIrequest-cache-pyAffected
  • 1.0.0 – 1.1.0
11 affected builds
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

Community reviews

Loading reviews…