Security context

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

truefoundry/cognita
main @ 8bcaae7
5
Fixes
2
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Path Traversal: 2 prior fixes. Scrutinize any change in this area.
backend/server/routers/internal.py: most-fixed (2 issues). Treat as high-risk during review.
3 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: Insecure handling of user-supplied paths and directory names allowed directory traversal, enabling attackers to write arbitrary files to the local file system. This directly resulted in CVE-2025-27519, where attackers could overwrite application files to execute arbitrary code.
SQL Injection: Database operations via the SingleStore Python connector dynamically constructed SQL queries using unvalidated table names, allowing attackers to inject malicious commands directly into cursor executions.
Insecure CORS Configuration: The backend server combined wildcard origins ('*') with allowed credentials inside the CORSMiddleware configuration, violating secure CORS specifications and allowing third-party sites to read sensitive API responses.