Malicious code in confext (PyPI)
- GHSA-2w76-98jj-hjwm
Summary
The confext package on PyPI is malicious and was published as part of a paired campaign. One package disguises a pickle as a configuration file containing hidden code, while a related loader dependency unpickles it. Unpickling automatically executes the embedded code, which establishes persistence through a PTH file and downloads a further-stage payload. The package then behaves like a remote access trojan, enabling file exfiltration and execution of remote commands. The record classifies it as clearly malicious, and it was first reported by Island.io. No CVSS score or CISA known-exploited status is listed.
AI summary · verify against the vendor advisory
Description
In 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. Package 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/confext/MAL-2026-21147.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
confextPyPI
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.