Security context

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

laion-ai/open-assistant
main @ f1e6ed9
13
Fixes
0
CVEs
HIGH
Peak severity
63.6%
Coverage
Highlights
Auth Bypass: 12 prior fixes. Scrutinize any change in this area.
inference/server/oasst_inference_server/auth.py: most-fixed (4 issues). Treat as high-risk during review.
12 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: Flaws in backend token parsing, exception handling (such as catching narrow JWE exceptions), and returning null values instead of raising explicit HTTP 403 errors allowed unauthenticated requests to bypass routing guards.
Auth Bypass: Misconfigured middleware and callback routes allowed the bypass of security controls, including CAPTCHA verifications and the misuse of hardcoded fallback credentials in non-production environments.
Auth Bypass: Critical chat-related endpoints (listing, creating, and retrieving chat messages) lacked required FastAPI authentication dependency injection, leaving them exposed to the public.