modern-csv PyPI malware: remote script execution and Cloudflare tunnel backdoor
Severity: critical · Patch status: no-fix-needed · Since 2026-12-03
The PyPI package modern-csv (versions 0.1.0 and 0.5.0) contains malicious code that silently downloads and executes a remote script, which then reports back to the attacker and establishes a Cloudflare tunnel, providing backdoor access to the compromised environment. The package has no legitimate patched version — it is outright malware, catalogued by OpenSSF malicious-packages and GitHub Advisory Database (GHSA-j2x8-r3mm-4mj4, CWE-506), published 2026-12-03. Any developer or CI environment that installed these versions should be treated as compromised, with risk of credential theft and further intrusion via the tunnel. No fix exists; remediation is removal of the package and incident response on affected hosts.
What to do
- Immediately uninstall modern-csv and purge it from requirements/lockfiles and CI caches
- Treat any machine or runner that installed it as compromised: rotate credentials, tokens, and keys accessible there
- Audit network logs for Cloudflare tunnel or unknown outbound connections; rebuild affected hosts
- Block the package name in your artifact proxy/registry and scan dependency trees for it
Sources
All live incidents on Threat Watch