Security context

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

envoyproxy/ai-gateway
main @ 598388d
31
Fixes
0
CVEs
HIGH
Peak severity
34.5%
Coverage
Highlights
Denial of Service: 16 prior fixes. Scrutinize any change in this area.
internal/mcpproxy: most-fixed (4 issues). Treat as high-risk during review.
10 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: Unsafe type assertions on the Envoy external processing response (`extprocv3.ProcessingResponse_RequestBody`) can trigger a nil-pointer dereference or panic when handling malformed JSON payloads. This directly crashes the gateway container.
Auth Bypass: Missing authorization filters and selector checks during Model Context Protocol (MCP) interactions allowed unauthorized tool discovery and execution. Implementing proper authorization rules and tool allowlist selectors is critical.
Auth Bypass: Failure to strip client-provided headers that match JWT claims before forwarding requests to backend MCP servers enabled header injection forgery and signature validation bypass.