Security context

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

headroomlabs-ai/headroom
main @ 90734b6
58
Fixes
11
CVEs
CRITICAL
Peak severity
58.3%
Coverage
Highlights
Denial of Service: 34 prior fixes. Scrutinize any change in this area.
headroom/proxy/server.py: most-fixed (6 issues). Treat as high-risk during review.
25 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.

Auth Bypass: Administrative, debug, and cached-content endpoints are restricted to local loopback hosts. Bypasses have historically occurred via proxy-header spoofing or missing decorators, leaving sensitive debug data exposed to remote networks.
Denial of Service: Consuming and parsing network input streams (such as Bedrock SSE streams or raw payloads) without enforcing strict size boundaries or utilizing non-blocking, non-panicking byte parsers leads to resource exhaustion and proxy crashes.
Information Disclosure: The storage router and in-memory context trackers have suffered from cross-project and cross-session data leaks due to weak scoping checks or unsafe fallback mechanisms that default to global scopes when project resolution fails.