Security context

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

encode/django-rest-framework
main @ fbb02d9
2
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
rest_framework/authtoken/models.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.

Auth Bypass: Misconfigured developer decorators on @api_view endpoints can silently bypass authentication and permission checks if the ordering is incorrect. A decorator validator must run at load time to enforce correct sequence.
Auth Bypass: Token generation collision can result in an auth bypass or session hijacking if model creation silently overwrites an existing token instead of failing securely via database constraints.