Security context

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

princeton-nlp/SWE-agent
main @ 3ea751c
2
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Command Injection: 1 prior fix. Scrutinize any change in this area.
sweagent/agent/summarizer.py: most-fixed (1 issue). Treat as high-risk during review.
2 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: Untrusted base_commit and URL values are interpolated into git subprocess commands; without shell quoting, an attacker can inject arbitrary commands.
Path Traversal: User-controlled command_file_name is used to construct a file write path; without sanitization, traversal can overwrite arbitrary files.