Security context

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

pytest-dev/py
master @ 6b21973
2
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Command Injection: 1 prior fix. Scrutinize any change in this area.
py/_path/svnwc.py: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix 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 shell=True in subprocess.Popen allows injection of shell metacharacters through untrusted input, leading to arbitrary command execution. The fix removed shell=True, but any future subprocess calls in this or related modules must avoid shell interpretation.
Denial of Service: An ambiguous regex quantifier (*) in the SVN blame parser allowed catastrophic backtracking on crafted blame output, causing CPU exhaustion. The fix changed to + to reduce ambiguity, but similar regex patterns elsewhere may still be vulnerable.