mailreader (PyPI) · Malicious Code
Affects mailreaderSource GCVE Database
Malicious package : remove mailreader and rotate any secrets on hosts that installed it.
Data as of 4 Dec 2026, 22:06 UTC
Malicious package
Published to PyPI · OSV MAL-2026-21148
What to do
Remove mailreader 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 |
|---|---|---|
| PyPImailreader | 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 mailreader package on PyPI versions 2.7.1 and 2.7.2 is involved in a malicious campaign where paired packages use a pickle disguised as a config file to execute embedded malicious code. This code establishes persistence via a PTH file, downloads additional payloads, and functions as a remote access trojan (RAT) enabling remote code execution and data exfiltration.