starlette-healthcheck (PyPI) · Malicious Code
Affects starlette-healthcheckSource GCVE Database
Malicious package : remove starlette-healthcheck and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 15:56 UTC
Malicious package
Published to PyPI · OSV MAL-2026-6724
What to do
Remove starlette-healthcheck 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 |
|---|---|---|
| PyPIstarlette-healthcheck | 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 starlette-healthcheck package on PyPI versions 1.2.0, 1.3.0, and 1.3.1 contains malicious code that covertly collects environment variable names, the machine hostname, and the public IP address, then sends this telemetry to an author-controlled Azure Container Apps endpoint. This behavior is undocumented and unrelated to the package's advertised functionality as an ASGI healthcheck and request-logging utility. The package includes a hardcoded API key and an undocumented override for the logging endpoint, increasing the risk of incidental adoption due to its plausible utility name and generic author metadata.