Security context

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

thedotmack/claude-mem
main @ 87e4836
83
Fixes
1
CVEs
HIGH
Peak severity
20.0%
Coverage
Highlights
Denial of Service: 36 prior fixes. Scrutinize any change in this area.
src/services/worker-service.ts: most-fixed (7 issues). Treat as high-risk during review.
28 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.

Command Injection: Using child_process.exec to run shell commands with raw arguments or unvalidated branch names enables arbitrary remote command execution. Developers must strictly avoid shell-based spawning and use argument-vector parameterized APIs.
Path Traversal: User-supplied or LLM-supplied file paths could traverse out of authorized workspace boundaries if not resolved against a canonical root directory and verified with prefix matching.
Denial of Service: A failure to close underlying transport connections on error (such as StdioClientTransport) combined with parallel sync requests creates severe process storms, rapidly exhausting system resources.