pyprig (PyPI) · Malicious Code
Affects pyprigSource GCVE Database
Malicious package : remove pyprig and rotate any secrets on hosts that installed it.
Data as of 3 Nov 2026, 01:16 UTC
Malicious package
Published to PyPI · OSV MAL-2026-18490
What to do
Remove pyprig 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 |
|---|---|---|
| PyPIpyprig | 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 pyprig package on PyPI is a malicious clone of the legitimate Pydantic package. It includes code that downloads and executes a remote script from a GitHub repository during the initialization of any models, injecting a runner module. The remote code observed during analysis was a placeholder, but the package's intent is clearly malicious.