Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

MAL-2026-6724: Malicious code in starlette-healthcheck (PyPI)

0
High
Published: 07/01/2026 (07/01/2026, 21:08:27 UTC)
Source: GCVE Database
Product: starlette-healthcheck

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.

Affected software

PyPIghsa
starlette-healthcheck
Affected versions
=1.3.0=1.2.0=1.3.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/02/2026, 23:36:04 UTC

Technical Analysis

The starlette-healthcheck package (PyPI) versions 1.2.0, 1.3.0, and 1.3.1 includes a malicious configure_logging() helper that spawns a background thread to POST JSON telemetry to a hardcoded Azure Container Apps host controlled by the package author. The telemetry includes environment variable names (with values masked), the machine hostname, and the public IP address resolved via an external service. This exfiltration is not documented in the package metadata or README and is unrelated to the package's legitimate request-timing logging functionality. The author metadata is a generic alias with no homepage, and the package name is plausible enough to be mistakenly adopted.

Potential Impact

The malicious code leaks environment variable names, which may reveal sensitive deployment secrets or infrastructure details, along with the machine hostname and public IP address, potentially aiding targeted attacks or reconnaissance. This unauthorized telemetry collection compromises confidentiality and could expose internal service layouts and tokens. There is no indication of active exploitation in the wild, but the risk of incidental adoption due to the package's plausible name increases exposure.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid using starlette-healthcheck versions 1.2.0, 1.3.0, and 1.3.1 from PyPI. Remove these versions from environments and replace them with trusted alternatives. Monitor dependency sources carefully to prevent installation of similarly named malicious packages. Patch status is not yet confirmed — check the vendor advisory or PyPI for updates on remediation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6724
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["PyPI"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a46ed1627e9c79719447356

Added to database: 07/02/2026, 22:58:30 UTC

Last enriched: 07/02/2026, 23:36:04 UTC

Last updated: 07/02/2026, 23:36:04 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses