Security context

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

tirth8205/code-review-graph
main @ b72413c
13
Fixes
0
CVEs
HIGH
Peak severity
33.3%
Coverage
Highlights
Path Traversal: 4 prior fixes. Scrutinize any change in this area.
code_review_graph/visualization.py: most-fixed (3 issues). Treat as high-risk during review.
6 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.

Path Traversal: The project exposes file parsing and database path resolution routines that must validate the user-supplied repository root. Failure to perform strict path verification against authorized directories allows arbitrary file access.
Command Injection: Git flag injection can occur if arbitrary references starting with hyphens are passed directly to downstream subprocess commands. Developers must enforce strict argument separation using '--' and reject malformed references.
Arbitrary Code Execution: Untrusted remote model code could execute automatically via SentenceTransformer unless specifically restricted by requiring explicit environment-variable opt-in for remote code evaluation.