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.