Skip to main content
MalwarePublished

mailreader (PyPI) · Malicious Code

Affects mailreaderSource GCVE Database

0

Malicious package : remove mailreader and rotate any secrets on hosts that installed it.

Data as of 4 Dec 2026, 22:06 UTC

Classification

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

ProductAffectedFixed in
PyPImailreaderAffected
  • =2.7.1
  • =2.7.2
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.

References

Community reviews

Loading reviews…