Security context

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

marker-inc-korea/autorag
main @ 1940730
6
Fixes
0
CVEs
HIGH
Peak severity
75.0%
Coverage
Highlights
Denial of Service: 3 prior fixes. Scrutinize any change in this area.
autorag/nodes/lexicalretrieval/bm25.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.

ReDoS: sanitizeIdSegment used a backtracking regex on attacker-controlled IDs; linear trimming fixed it, but sibling ID sanitization paths may still use regex.
ReDoS: Edge-dash stripping regex on instance IDs caused polynomial backtracking; replaced with linear scan. Other path-normalization regexes may remain.
ReDoS: Trailing-slash regex on attacker-controlled path was ReDoS-prone; fixed with linear walk. Similar regex on other path components likely exists.