py-0requests (PyPI) · Malicious Code
Affects py-0requestsSource GCVE Database
Malicious package : remove py-0requests and rotate any secrets on hosts that installed it.
Data as of 7 Sep 2026, 16:08 UTC
Malicious package
Published to PyPI · OSV MAL-2026-15860
What to do
Remove py-0requests 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 |
|---|---|---|
| PyPIpy-0requests | 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 py-0requests package on PyPI is a malicious typosquatting package impersonating the popular 'requests' library by replacing the letter 'o' with the digit '0'. Upon import, it exfiltrates environment variables with keys starting with SECRET, API, TOKEN, or KEY to a TCP server, defaulting to localhost. It also establishes a reverse shell connection to the same destination, enabling remote control. The package does not provide any HTTP client functionality and appears designed for testing or pentesting purposes, as the exfiltration target is localhost. Only version 0.0.1 is known to be affected.