Security context

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

mempalace/mempalace
develop @ 6ea60c6
41
Fixes
0
CVEs
HIGH
Peak severity
34.5%
Coverage
Highlights
Denial of Service: 19 prior fixes. Scrutinize any change in this area.
mempalace/mcp_server.py: most-fixed (11 issues). Treat as high-risk during review.
7 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: The save hook was highly vulnerable to command execution via inline python command interpolation, which was resolved by migrating to structured argument passing via sys.argv.
Command Injection: The precompact shell hook parsed input strings using unsafe shell evaluation, inviting command injection until it was refactored to read safely via mapfile.
Path Traversal: Unvalidated path resolution permitted directory traversal and arbitrary file reads, resolved by applying canonicalization and verifying that resolved paths stay within allowed directory prefixes.