Malicious code in mailreader (PyPI)
- GHSA-p2gv-9m7v-8m8m
Summary
The PyPI package mailreader is reported as malicious code in a paired campaign. The frontend package hides malicious code inside a pickle file disguised as a config, and a related loader dependency contains code that unpickles it. Unpickling automatically executes the embedded code, which establishes persistence through a PTH file and downloads a next-stage payload. The result behaves as a remote access trojan, enabling file exfiltration and execution of remote commands. The record classes this as malicious rather than a vulnerability, with no CVSS score and no CISA known-exploited listing. Engineers should treat installations of this package as compromised and remove them.
AI summary · verify against the vendor advisory
Description
n this campaign, malicious packages are published in pairs. One package ("frontend" one) carries malicious code hidden in a pickle disguised as a config. A related dependency (a loader package) contains code to load the pickle. During unpickling, malicious code embeded in the pickle file is automatically executed. It then establishes persistence via a PTH file and downloads the next stage payload. It finally acts like a RAT, allowing remote exfiltration and code execution. This package has been first discovered by Island.io --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-10-webreader Reasons (based on the campaign): - files-exfiltration - obfuscation - The malicious code is intentionally included in a dependency of the package - Downloads and executes a remote malicious script. - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine. - rat - persistence - abuses-pth --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/7e6e9c00fffe569d0d4a1f719e8f459b321834df/osv/malicious/pypi/mailreader/MAL-2026-21148.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
mailreaderPyPI
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.