confext (PyPI) · Malicious Code
Affects confextSource GCVE Database
Malicious package : remove confext and rotate any secrets on hosts that installed it.
Data as of 4 Dec 2026, 22:05 UTC
Malicious package
Published to PyPI · OSV MAL-2026-21147
What to do
Remove confext 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 |
|---|---|---|
| PyPIconfext | 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 confext package version 0.7.2 on PyPI is part of a malicious campaign involving paired packages. One package contains malicious code hidden in a pickle file disguised as a configuration, while a related loader package executes this code during unpickling. The malicious 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.