Security context

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

code-yeongyu/oh-my-openagent
dev @ 881e612
170
Fixes
0
CVEs
CRITICAL
Peak severity
20.0%
Coverage
Highlights
Denial of Service: 61 prior fixes. Scrutinize any change in this area.
src/features/background-agent/manager.ts: most-fixed (8 issues). Treat as high-risk during review.
62 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.

Code Execution: Parsing untrusted frontmatter via js-yaml's unsafe load function permitted arbitrary code execution. This was mitigated by restricting the engine to a secure JSON_SCHEMA parse mode.
Path Traversal: Extraction paths and archive link validation were vulnerable to path traversal and directory escape because they lacked rigorous canonicalization and prefix confinement validation.
Command Injection: Assembling shell commands dynamically with nested quotes for tmux execution allowed attackers to inject shell metacharacters and run arbitrary local commands.