Security context

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

imerica/dj-rest-auth
master @ 90082e3
31
Fixes
0
CVEs
CRITICAL
Peak severity
46.2%
Coverage
Highlights
Auth Bypass: 20 prior fixes. Scrutinize any change in this area.
dj_rest_auth/registration/serializers.py: most-fixed (6 issues). Treat as high-risk during review.
14 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: Google OAuth validation mistakenly used an unresolved token variable instead of the valid id_token, allowing incorrect payloads to succeed. Additionally, empty credentials or improper handling of social login errors could lead to unauthorized account associations.
Auth Bypass: JWT logout endpoints failed to properly extract and blacklist refresh tokens from secure cookies when JWT_AUTH_HTTPONLY was enabled, allowing expired or logged-out sessions to remain active.
Auth Bypass: Password reset flows were vulnerable to validation bypass because token validation logic either ran after password evaluation or merely appended errors to self._errors instead of raising a terminal ValidationError.