Security context

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

kaelio/ktx
main @ 4f08418
6
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
packages/context/src/llm/claude-code-runtime.ts: most-fixed (2 issues). Treat as high-risk during review.
2 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: The Model Context Protocol (MCP) integration allowed unauthorized tool execution and lacked rigorous environment isolation. This poses a significant risk of remote code execution if the LLM backend is manipulated to execute malicious local tools.
SQL Injection: Read-only SQL executors were vulnerable to statement-smuggling attacks via embedded semicolons and SQL comment characters, potentially allowing destructive state-changing commands to bypass structural checks.
Auth Bypass: The local query execution path bypassed the project's centralized credential-resolution layer, sending raw, unresolved secret placeholders directly to database drivers, leading to authentication failures or sensitive key exposure.