Security context

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

openbmb/ultrarag
main @ f334fa7
2
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
servers/corpus/src/corpus.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.

Auth Bypass: Session IDs were previously accepted without format validation or ownership verification. Attackers could hijack sessions or execute injection attacks if the session retrieval API does not validate both the session_id format and the client's IP address.
Path Traversal: User-supplied document paths were opened directly using pymupdf.open without canonicalization. This allowed attackers to traverse outside intended boundaries and read arbitrary system files.