Security context

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

stacklok/toolhive
main @ baf8050
164
Fixes
1
CVEs
HIGH
Peak severity
42.1%
Coverage
Highlights
Auth Bypass: 70 prior fixes. Scrutinize any change in this area.
pkg/authserver/server/handlers/callback.go: most-fixed (5 issues). Treat as high-risk during review.
92 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: Session handling paths frequently suffered from session hijacking, token-binding omissions, and credential reuse where user identity verification was skipped or improperly validated during cross-instance state restoration.
Auth Bypass: The controller reconcilers failed to properly resolve and enforce runtime authorization configurations (e.g. MCPAuthzConfig and ConfigMaps) when updating resources, leading to silent policy bypass windows in virtualized servers.
Path Traversal: OCI artifact extraction and multi-client skill installation parameters lacked robust directory containment checks, allowing directory traversal and write-access targeting arbitrary host locations.