Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

prometheus/client_python
master @ 7819d80
2
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Denial of Service: 2 prior fixes. Scrutinize any change in this area.
prometheus_client/exposition.py: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Denial of Service: The HTTP server used to expose metrics could leak connection threads and exhaust system memory under load because thread lifecycles were not set to daemon mode, preventing resource reclamation.
Denial of Service: The garbage collection metric collector was vulnerable to stack overflow crashes when its callback was triggered recursively, requiring an explicit re-entrancy guard.