[high] Potential panic from unwrapping empty ObjectId
[medium] Unnecessary database operations in cascade delete
[medium] Missing error propagation in cascade_delete_dast_target
[medium] Code duplication in session cleanup logic
[high] Potential Command Injection via MongoDB Query
[high] Missing error handling for database operations
Compliance scan found 12 issue(s) in this PR:
[medium] Potential panic from unwrap_or_default() on empty ObjectId
[medium] Complex nested control flow in delete_repository function
[high] Insecure Direct Object Reference (IDOR)
[medium] Potential Race Condition in Deletion Logic
[medium] Inconsistent error handling in cascade deletion functions
[high] High cyclomatic complexity in cascade_delete_dast_target function
[medium] Insecure LLM System Prompt Configuration
[medium] Insecure LLM System Prompt
[low] Missing Type Annotations in Function Signature