twitter-request-diagnostics (PyPI) · Malicious Code
Affects twitter-request-diagnosticsSource GCVE Database
Malicious package : remove twitter-request-diagnostics and rotate any secrets on hosts that installed it.
Data as of 30 Oct 2026, 01:47 UTC
Malicious package
Published to PyPI · OSV MAL-2026-18403
What to do
Remove twitter-request-diagnostics 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 |
|---|---|---|
| PyPItwitter-request-diagnostics | 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 twitter-request-diagnostics package on PyPI version 1.0.0 contains malicious code that acts as a backdoor. It exposes an endpoint that can exfiltrate environment variables and execute arbitrary commands sent to it, posing a significant security risk to applications using this package.