Security context

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

tmc/langchaingo
main @ 8fea3de
11
Fixes
1
CVEs
CRITICAL
Peak severity
88.9%
Coverage
Highlights
Denial of Service: 8 prior fixes. Scrutinize any change in this area.
llms/openai: most-fixed (2 issues). Treat as high-risk during review.
5 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: Malformed or unexpected Server-Sent Events (SSE) lines in response streams could trigger a fatal logger call, completely crashing the host application instead of returning a manageable error.
Denial of Service: TokenBuffer context saving can enter an infinite loop when the token count stays above the maximum limit despite an empty ChatHistory, exhausting CPU resources.
Path Traversal: Unvalidated file paths provided to template engines can allow directory traversal, letting unauthorized users read local files on the system during prompt rendering.